fix(web): render content pages dynamically so next build needs no DB
CI / typecheck + build (turbo) (push) Canceled after 0s
CI / typecheck + build (turbo) (push) Canceled after 0s
The home, doc, and search pages queried Postgres during SSG/static data collection, so 'next build' failed in CI (no DB). Mark them force-dynamic (and drop generateStaticParams from the doc page) so they render at request time — instant at this corpus scale and build-safe without a live database.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
import Link from "next/link";
|
||||
import { keywordSearch, hybridSearch } from "@mcpedia/core";
|
||||
|
||||
// Render at request time — queries Postgres on each request (not at build,
|
||||
// where CI has no DB).
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
type Mode = "keyword" | "hybrid";
|
||||
|
||||
export default async function SearchPage({
|
||||
|
||||
Reference in New Issue
Block a user