Commit 2a19c36c authored by Tim Neutkens's avatar Tim Neutkens

Fix failures

parent cd27516c
import * as Log from './output/log' import * as Log from './output/log'
export function warnAboutEdgeRuntime() { export function warnAboutEdgeRuntime() {
// Webpack build workers each run in a separate process with their own
// warnOnce cache, so the same warning would be emitted once per worker.
// Suppress in workers; the main build process emits the warning once during
// the "Collecting page data" phase.
if (process.env.NEXT_PRIVATE_BUILD_WORKER) return
Log.warnOnce( Log.warnOnce(
`The Edge Runtime is deprecated. You can use the "nodejs" runtime instead. Learn more: https://nextjs.org/docs/messages/edge-runtime-deprecated` `The Edge Runtime is deprecated. You can use the "nodejs" runtime instead. Learn more: https://nextjs.org/docs/messages/edge-runtime-deprecated`
) )
} }
export function warnAboutPreferredRegion() { export function warnAboutPreferredRegion() {
if (process.env.NEXT_PRIVATE_BUILD_WORKER) return
Log.warnOnce( Log.warnOnce(
`The "preferredRegion" route segment config is deprecated. Learn more: https://nextjs.org/docs/messages/preferred-region-deprecated` `The "preferredRegion" route segment config is deprecated. Learn more: https://nextjs.org/docs/messages/preferred-region-deprecated`
) )
......
...@@ -310,6 +310,7 @@ ...@@ -310,6 +310,7 @@
"test/e2e/edge-configurable-runtime/index.test.ts", "test/e2e/edge-configurable-runtime/index.test.ts",
"test/e2e/edge-pages-support/edge-document.test.ts", "test/e2e/edge-pages-support/edge-document.test.ts",
"test/e2e/edge-pages-support/index.test.ts", "test/e2e/edge-pages-support/index.test.ts",
"test/e2e/edge-runtime-deprecated/edge-runtime-deprecated.test.ts",
"test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts", "test/e2e/edge-runtime-uses-edge-light-import-specifier-for-packages/edge-runtime-uses-edge-light-import-specifier-for-packages.test.ts",
"test/e2e/import-conditions/import-conditions.test.ts", "test/e2e/import-conditions/import-conditions.test.ts",
"test/e2e/manual-client-base-path/index.test.ts", "test/e2e/manual-client-base-path/index.test.ts",
......
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