-
Notifications
You must be signed in to change notification settings - Fork 29.7k
-
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 22.3.0: Mon Jan 30 20:42:11 PST 2023; root:xnu-8792813~2/RELEASE_X86_64
Binaries:
Node: 18.12.1
npm: 8.19.2
Yarn: 1.22.19
pnpm: 8.1.0
Relevant packages:
next: 13.2.4
eslint-config-next: 13.2.3
react: 18.2.0
react-dom: 18.2.0Which area(s) of Next.js are affected? (leave empty if unsure)
Standalone mode (output: "standalone")
Link to the code that reproduces this issue
To Reproduce
export const config: PageConfig = { runtime: process.env.NEXT_RUNTIME, };
Unsupported node type "MemberExpression"
Or
export const config: PageConfig = { runtime: process.env.STANDALONE ? "nodejs" : "edge", };
Unsupported node type "ConditionalExpression"
Describe the Bug
PageConfig should allowed simple expression
Expected Behavior
Conditional page runtime works as expected
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment
-
I Second this.
With 'experimental-edge', local dev mode fails with 'Internal Server Error'. Without the setting, cloudflare complaints and fails to build.
Is there a way to rewrite the setting dynamically?
Beta Was this translation helpful? Give feedback.
All reactions
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment