#A way to mass opt in server to edge?

10 messages · Page 1 of 1 (latest)

willow cradle
#

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.

gentle harborBOT
#

🔎 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)

strong remnant
willow cradle
strong remnant
willow cradle
gentle harborBOT
#
✅ Success!

This question has been marked as answered! If you have any other questions, feel free to create another post

Jump to answer
strong remnant
#

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

proud crater
#

if it's a real real real pain to add the export to files you can always script it