Use the edge runtime in App Router files

Proprietary

Next.js 15 reports an error for the experimental-edge value of the runtime segment config, which meant the same as edge. Changes export const runtime = 'experimental-edge' to 'edge' in the files of the App Router folder, app or src/app. Files of the Pages Router are left alone.

io.moderne.nextjs.15.app-dir-runtime-config-experimental-edge
mod run . --recipe=io.moderne.nextjs.15.app-dir-runtime-config-experimental-edge

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.