From 7c1c295c630d7bc9007019dd7299bbdff9071b1c Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 27 Dec 2023 21:39:03 +0500 Subject: [PATCH] Add pre-render --- src/pages/v1-health.ts | 1 + src/pages/v1-stats.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/pages/v1-health.ts b/src/pages/v1-health.ts index eb09adfd8..0984a57dd 100644 --- a/src/pages/v1-health.ts +++ b/src/pages/v1-health.ts @@ -1,4 +1,5 @@ import { execSync } from 'child_process'; + export async function GET() { return new Response(JSON.stringify({}), {}); } diff --git a/src/pages/v1-stats.ts b/src/pages/v1-stats.ts index 681fe6036..4986d75a4 100644 --- a/src/pages/v1-stats.ts +++ b/src/pages/v1-stats.ts @@ -1,5 +1,7 @@ import { execSync } from 'child_process'; +export const prerender = true; + export async function GET() { const commitHash = execSync('git rev-parse HEAD').toString().trim(); const commitDate = execSync('git log -1 --format=%cd').toString().trim();