mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
35253e1a93
Currently the DEV server can't recover if you export an invalid runtime config. It ends up in a state where it stops to work but nothing is printed to the terminal. It now prints an error but keeps working. When building it should crash, there's an existing test for that https://github.com/vercel/next.js/blob/canary/test/production/exported-runtimes-value-validation/index.test.ts#L5-L17 #### Reproduce ```tsx export default function Page() { return <p>hello world</p> } export const config = { runtime: 'something-odd', } ```
4 lines
82 B
JavaScript
4 lines
82 B
JavaScript
export default function Page() {
|
|
return <p>Hello from page without errors</p>
|
|
}
|