You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constmessage=`Route segment config is not allowed in Proxy file at "${resolvedPath}". Proxy always runs on Node.js runtime. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`
Copy file name to clipboardExpand all lines: test/e2e/app-dir/proxy-runtime/proxy-runtime.test.ts
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,9 @@ Next.js can't recognize the exported \`config\` field in route. Proxy does not s
35
35
36
36
The exported configuration object in a source file needs to have a very specific format from which some properties can be statically parsed at compiled-time.`)
37
37
}else{
38
-
expect(cliOutput).toContain(`Proxy does not support Edge runtime.`)
38
+
expect(cliOutput).toContain(
39
+
`Route segment config is not allowed in Proxy file at "./proxy.ts". Proxy always runs on Node.js runtime. Learn more: https://nextjs.org/docs/messages/middleware-to-proxy`
0 commit comments