We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7627e84 commit 5f9e686Copy full SHA for 5f9e686
frontend/pages/health.tsx
@@ -1,16 +1,16 @@
1
-import { GetServerSideProps } from 'next';
+import { GetServerSideProps } from "next";
2
3
const HealthPage = () => {
4
return <div>OK</div>;
5
};
6
7
export const getServerSideProps: GetServerSideProps = async ({ req }) => {
8
- const userAgent = req.headers['user-agent'] || '';
+ const userAgent = req.headers["user-agent"] || "";
9
10
- if (userAgent !== 'service-status') {
+ if (userAgent !== "service-status") {
11
return {
12
redirect: {
13
- destination: '/',
+ destination: "/",
14
permanent: false,
15
},
16
0 commit comments