fix: force dynamic rendering to skip static prerendering
Add `export const dynamic = 'force-dynamic'` to root layout so all pages are rendered at request time instead of build time. Fixes useContext null error during Docker build prerendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,8 @@ import '@mantine/notifications/styles.css';
|
||||
import { Lato } from "next/font/google";
|
||||
import { Toaster } from 'react-hot-toast';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export const metadata = {
|
||||
title: "SISTEM DESA MANDIRI",
|
||||
description: "I have followed setup instructions carefully",
|
||||
|
||||
Reference in New Issue
Block a user