Render root layout dynamically so the build needs no database

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SvuGvHpbAQ4syfuLuRvutL
This commit is contained in:
Maaxxs 2026-10-19 15:46:45 +02:00
parent f377a14f79
commit df2e3c3de8

View file

@ -11,6 +11,9 @@ import "@/styles/bundle.css";
import "@/styles/shop.css"; import "@/styles/shop.css";
import { getSettings } from "@/lib/settings"; import { getSettings } from "@/lib/settings";
// Settings come from the database, so nothing here can be prerendered at build time.
export const dynamic = "force-dynamic";
export async function generateMetadata(): Promise<Metadata> { export async function generateMetadata(): Promise<Metadata> {
const s = await getSettings(); const s = await getSettings();
return { return {