Unverified Commit cb2ba0c7 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix invalid config warning for runtime config (#38122)

parent 1feaac03
...@@ -509,6 +509,7 @@ export const defaultConfig: NextConfig = { ...@@ -509,6 +509,7 @@ export const defaultConfig: NextConfig = {
swcMinify: false, swcMinify: false,
output: !!process.env.NEXT_PRIVATE_STANDALONE ? 'standalone' : undefined, output: !!process.env.NEXT_PRIVATE_STANDALONE ? 'standalone' : undefined,
experimental: { experimental: {
runtime: undefined,
manualClientBasePath: false, manualClientBasePath: false,
// TODO: change default in next major release (current v12.1.5) // TODO: change default in next major release (current v12.1.5)
legacyBrowsers: true, legacyBrowsers: true,
......
...@@ -61,6 +61,11 @@ function runTestsAgainstRuntime(runtime) { ...@@ -61,6 +61,11 @@ function runTestsAgainstRuntime(runtime) {
) )
}) })
} }
it('should not have invalid config warning', async () => {
await renderViaHTTP(context.appPort, '/')
expect(context.stderr).not.toContain('not exist in this version')
})
}, },
{ {
beforeAll: (env) => { beforeAll: (env) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment