Next.js Discord

Discord Forum

Can you set up edge runtime in _app.tsx?

Unanswered
Montezuma Quail posted this in #help-forum
Open in Discord
Montezuma QuailOP
In older versions, you could turn on edge runtime for all the routes / pages in config. This is no longer possible and you have to add export const runtime = 'edge'; to every route. Is it possible to add it to _app.tsx to turn it on for every page in a single place?

3 Replies