-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: devops / kubernetes health check pages
- Loading branch information
Showing
3 changed files
with
54 additions
and
10 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Head from "next/head"; | ||
import Layout from "./layout"; | ||
|
||
/* Separate healthcheck page that does no GraphQL queries to avoid csrf token issues */ | ||
export default function Index() { | ||
return ( | ||
<> | ||
<Head> | ||
<meta name="robots" content="noindex,nofollow" /> | ||
</Head> | ||
<Layout> | ||
<div>Healthcheck</div> | ||
</Layout> | ||
</> | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { type GetServerSidePropsContext } from "next"; | ||
import { serverSideTranslations } from "next-i18next/serverSideTranslations"; | ||
import Head from "next/head"; | ||
|
||
/* Separate healthcheck page that does no GraphQL queries to avoid csrf token issues */ | ||
export default function Index() { | ||
return ( | ||
<> | ||
<Head> | ||
<meta name="robots" content="noindex,nofollow" /> | ||
</Head> | ||
<div>Healthcheck</div> | ||
</> | ||
); | ||
} | ||
|
||
export async function getServerSideProps({ | ||
locale, | ||
}: GetServerSidePropsContext) { | ||
return { | ||
props: { | ||
...(await serverSideTranslations(locale ?? "fi")), | ||
}, | ||
}; | ||
} |