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:
bipproduction
2026-03-06 11:19:36 +08:00
parent b7063d3658
commit 5e7eb20c26

View File

@@ -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",