Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
2a19c36c
Commit
2a19c36c
authored
Apr 15, 2026
by
Tim Neutkens
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix failures
parent
cd27516c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
warn-about-edge-runtime.ts
packages/next/src/build/warn-about-edge-runtime.ts
+6
-0
cache-components-tests-manifest.json
test/cache-components-tests-manifest.json
+1
-0
No files found.
packages/next/src/build/warn-about-edge-runtime.ts
View file @
2a19c36c
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`
)
)
...
...
test/cache-components-tests-manifest.json
View file @
2a19c36c
...
@@ -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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment