fix: gracefaul fallback + force-dynamic for build

This commit is contained in:
2026-04-28 07:14:25 +08:00
parent d375112c8e
commit 37e51f4d48
9 changed files with 62 additions and 27 deletions
+3
View File
@@ -5,6 +5,9 @@ import { eq, and, sql } from "drizzle-orm"
import { readFile } from "node:fs/promises"
import { join } from "node:path"
// This needs live data — skip static generation at build time
export const dynamic = "force-dynamic"
export const alt = "DeckyVault - Game Benchmarks"
export const size = { width: 1200, height: 630 }
export const contentType = "image/png"
+3
View File
@@ -15,6 +15,9 @@ import { and, desc, eq, sql } from "drizzle-orm"
import { isSyncStale, syncSteamGame } from "@/lib/steam/sync"
import { GamePageClient } from "./game-page-client"
// This page needs live data — skip static generation at build time
export const dynamic = "force-dynamic"
async function resolveGame(id: string) {
const isNumeric = /^\d+$/.test(id)
let game
+3
View File
@@ -4,6 +4,9 @@ import { games, gameVersions } from "@/lib/db/schema"
import { eq, sql } from "drizzle-orm"
import { GameEntryWizard } from "@/components/wizard/game-entry-wizard"
// This page needs live data — skip static generation at build time
export const dynamic = "force-dynamic"
export const metadata = {
title: "Submit Benchmark",
}