Files
Jiachi LiuandGitHub 1c67740676 Drop object config export support for app dir (#48489)
We've supported `export const config = { ... }` to sepecify `runtime`
etc. configs for pages under `app/` for a while. This PR is going to
drop it and only support `export const [config name] = [config value]`
per config

Add a warning if the legacy usage is detectd

Closes NEXT-1016
2023-04-17 20:02:32 +00:00

9 lines
143 B
TypeScript

import { cookies } from 'next/headers'
export const runtime = 'edge'
export default function Page() {
cookies()
return <h1>Hello!</h1>
}