Do not pre-render stats pages

pull/5494/head
Kamran Ahmed 6 months ago
parent 9d63306fc9
commit 5c423e149f
  1. 2
      src/pages/v1-health.ts
  2. 2
      src/pages/v1-stats.json.ts

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

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

Loading…
Cancel
Save