Skip to content

Commit 65cb3d3

Browse files
mischnicdevjiwonchoi
authored andcommitted
override webpack
1 parent e52d7a4 commit 65cb3d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/next/src/build/analysis/get-page-static-info.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ export async function getPagesPageStaticInfo({
750750
const config = parsePagesSegmentConfig(exportedConfig, route)
751751
const isAnAPIRoute = isAPIRoute(route)
752752

753-
const resolvedRuntime = config.runtime ?? config.config?.runtime
753+
let resolvedRuntime = config.runtime ?? config.config?.runtime
754754

755755
if (resolvedRuntime === SERVER_RUNTIME.experimentalEdge) {
756756
warnAboutExperimentalEdge(isAnAPIRoute ? page! : null)
@@ -760,6 +760,7 @@ export async function getPagesPageStaticInfo({
760760
(page === `/${PROXY_FILENAME}` || page === `/src/${PROXY_FILENAME}`) &&
761761
isEdgeRuntime(resolvedRuntime)
762762
) {
763+
resolvedRuntime = SERVER_RUNTIME.nodejs
763764
const message = `Proxy does not support Edge runtime.`
764765
if (isDev) {
765766
Log.error(message)

0 commit comments

Comments
 (0)