f6a7143d1b
Root cause of the SSG/page-data build crash: src/app/layout.tsx evaluated new URL(process.env.BASE_URL) at module load. BASE_URL was never set as a build-time ENV, so it was undefined -> ERR_INVALID_URL, input: 'undefined'. Because this is the root layout, its metadata is collected for every route, explaining why both /impressum (marketing) and /portal-login (non-marketing) failed identically. The earlier NextAuth/middleware/force-dynamic fixes could not help because metadata evaluation happens before any of that. - layout.tsx: fall back to http://localhost:3000 when BASE_URL is unset - Dockerfile: add BASE_URL build-time placeholder (matches AUTH_URL pattern)
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Inter, a custom Google Font.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.