We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32c9d29 commit 798fe81Copy full SHA for 798fe81
app/routes/status[.]json.tsx
@@ -5,14 +5,14 @@ export async function loader({
5
request,
6
}: LoaderFunctionArgs) {
7
8
- const jsonStr = JSON.stringify({
+ const status = {
9
success: true,
10
message: 'OK',
11
timestamp: new Date().toISOString(),
12
tech: `NodeJS ${process.version}`,
13
lastmod: process.env.LASTMOD || '(not set)',
14
commit: process.env.COMMIT || '(not set)',
15
- });
+ };
16
17
- return handleJsonp(request, jsonStr);
+ return handleJsonp(request, status);
18
}
0 commit comments