Skip to content

Commit

Permalink
Fix status.json double-encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
fileformat committed Oct 11, 2024
1 parent 32c9d29 commit 798fe81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/routes/status[.]json.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ export async function loader({
request,
}: LoaderFunctionArgs) {

const jsonStr = JSON.stringify({
const status = {
success: true,
message: 'OK',
timestamp: new Date().toISOString(),
tech: `NodeJS ${process.version}`,
lastmod: process.env.LASTMOD || '(not set)',
commit: process.env.COMMIT || '(not set)',
});
};

return handleJsonp(request, jsonStr);
return handleJsonp(request, status);
}

0 comments on commit 798fe81

Please sign in to comment.