Hi everyone, I want to switch from Vercel to cloud flare pages, but it says in docs that I need to opt in each individual server page to edge as node run time isn’t supported. Is there just an easy way to opt in every page without adding the line to each one? Like could I just make the route layout edge and everything under it will be edge too? Seems like that should be an option since with cloud flare specifically if you don’t opt in it doesn’t work at all. Thanks in advance! I’m using latest Next JS 14 as well.
#A way to mass opt in server to edge?
10 messages · Page 1 of 1 (latest)
🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord
🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize
✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)
cf pages user here. no unfortunately there are no ways to mass opt in, you have to put that export statement everywhere
Damn that’s pretty rough, would you say that the pricing on cloud flare is worth the switch?
i don't make the decision to use cf (i only joined after the entire infra is run on cf), though i would say yes it only comes with minor inconvenience and definitely worth the price decrease
Thank you, maybe I’ll just suck it up and put edge everywhere lol
✅ Success!
This question has been marked as answered! If you have any other questions, feel free to create another post
Jump to answer
[Click here](#1226177989491036260 message)
It does cover a lot of places but not everywhere. A notable exception is route handlers which are not subjected to the layout so you still have to put the export everywhere. There are no global solutions – there used to be but it has been discontinued
if it's a real real real pain to add the export to files you can always script it