Use Edge Runtime by default??

I want to experiment with a project that is using t3 stack + the Edge Runtime: (So far I've got create-t3-app + database.js + clerk deployed to vercel) In Theo's video on Edge Runtime he shows nextConfig.experimental.runtime: experimental-edge as a way of using Edge by default, and mentions it would likely soon be deprecated. That option is no longer in the type-defs, so I assume it indeed has been deprecated. Does that mean the only way to make an entire app use the Edge Runtime is to export the runtime and region in every single entry point?
export const config = { runtime: 'edge', regions: ['iad1'] };
export const config = { runtime: 'edge', regions: ['iad1'] };
https://vercel.com/docs/concepts/functions/edge-functions#regional-edge-function-invocation
0 Replies
No replies yetBe the first to reply to this messageJoin