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:
parent
f377a14f79
commit
df2e3c3de8
1 changed files with 3 additions and 0 deletions
|
|
@ -11,6 +11,9 @@ import "@/styles/bundle.css";
|
|||
import "@/styles/shop.css";
|
||||
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> {
|
||||
const s = await getSettings();
|
||||
return {
|
||||
|
|
|
|||
Loading…
Reference in a new issue