amalia/06-mar-26 #22

Merged
amaliadwiy merged 8 commits from amalia/06-mar-26 into join 2026-03-06 16:37:03 +08:00

8 Commits

Author SHA1 Message Date
bipproduction
d401ebb208 fix: add custom Pages Router _error page for 404/500 prerendering
Override default Next.js _error page that imports <Html> from
next/document, which fails during Docker build prerendering.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:35:48 +08:00
bipproduction
5230a31942 fix: add custom 404 and global error pages for Docker build
Create not-found.tsx and global-error.tsx to prevent Next.js from
falling back to legacy Pages Router _error pages during static
generation, which fail with useContext null in Docker.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:28:37 +08:00
bipproduction
5e7eb20c26 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>
2026-03-06 11:19:36 +08:00
bipproduction
b7063d3658 fix: update Dockerfile bun version and remove --ignore-scripts
Upgrade bun 1.3.1 to 1.3.6 and remove --ignore-scripts flag to fix
prerender error during Docker build (null useContext dispatcher).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 11:12:24 +08:00
4abaa97cc0 upd bun 2026-03-06 10:59:14 +08:00
069174cba1 update env example dummy 2026-03-06 10:42:45 +08:00
a04e0186a2 update env example 2026-03-06 10:33:22 +08:00
2af22b4bc7 build 2026-03-06 10:21:40 +08:00