how to disable edge environment only locally(export const runtime = 'edge')
When I only want to run it in a non-edge environment locally, how should I configure the pages in Next.js?
In summary,
I would like to do it as follows locally
//export const runtime = 'edge'
When deploying to Cloudflare, I would like to do it as follows.
export const runtime = 'edge'
It seems that runtime settings cannot be configured dynamically.
const test = 'eidge'
export const runtime = test
Even with the above settings, I encountered an error when running npx @cloudflare/next-on-pages@1
Please let me know if there are any other solutions or improvements.
In summary,
I would like to do it as follows locally
//export const runtime = 'edge'
When deploying to Cloudflare, I would like to do it as follows.
export const runtime = 'edge'
It seems that runtime settings cannot be configured dynamically.
const test = 'eidge'
export const runtime = test
Even with the above settings, I encountered an error when running npx @cloudflare/next-on-pages@1
Please let me know if there are any other solutions or improvements.