-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #624 from karrioapi/hotfix-dashboard-env
hotfix: dashboard KARRIO API env var references
- Loading branch information
Showing
89 changed files
with
174 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2024.6-rc19 | ||
2024.6-rc20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
import { loadAPIMetadata } from "@/context/main"; | ||
import { GetServerSideProps } from "next"; | ||
|
||
|
||
export const getServerSideProps: GetServerSideProps = async (ctx) => { | ||
const { res } = ctx; | ||
const metadata = await loadAPIMetadata(ctx).catch(_ => _); | ||
const metadata = await loadAPIMetadata(ctx).catch((_) => _); | ||
|
||
res.setHeader('Cache-Control', 'public, s-maxage=30, stale-while-revalidate=59') | ||
res.setHeader( | ||
"Cache-Control", | ||
"public, s-maxage=30, stale-while-revalidate=59", | ||
); | ||
|
||
return { props: { ...metadata } }; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.