next-runtime icon indicating copy to clipboard operation
next-runtime copied to clipboard

Auto-enable edge functions if site has edge runtime enabled

Open ascorbic opened this issue 3 years ago • 1 comments

If a user opts-in to edge runtime for SSR or API routes, we should take that as tacit opt-in to use edge functions too. Unlike middleware we won't have any legacy users who started using it before we supported edge functions. It's also meaningless to use it without edge functions. The other option is to fail builds if it's not enabled, but at that point I think we may as well just set the env var ourselves.

ascorbic avatar Jun 29 '22 15:06 ascorbic

Checking with the data and product team on edge function usage before proceeding. 👍

MarcL avatar Aug 02 '22 15:08 MarcL