Add pre-render

feat/roadmap-slug
Kamran Ahmed 11 months ago
parent 39e55a06e8
commit 7c1c295c63
  1. 1
      src/pages/v1-health.ts
  2. 2
      src/pages/v1-stats.ts

@ -1,4 +1,5 @@
import { execSync } from 'child_process'; import { execSync } from 'child_process';
export async function GET() { export async function GET() {
return new Response(JSON.stringify({}), {}); return new Response(JSON.stringify({}), {});
} }

@ -1,5 +1,7 @@
import { execSync } from 'child_process'; import { execSync } from 'child_process';
export const prerender = true;
export async function GET() { export async function GET() {
const commitHash = execSync('git rev-parse HEAD').toString().trim(); const commitHash = execSync('git rev-parse HEAD').toString().trim();
const commitDate = execSync('git log -1 --format=%cd').toString().trim(); const commitDate = execSync('git log -1 --format=%cd').toString().trim();

Loading…
Cancel
Save