mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
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
9 lines
143 B
TypeScript
9 lines
143 B
TypeScript
import { cookies } from 'next/headers'
|
|
|
|
export const runtime = 'edge'
|
|
|
|
export default function Page() {
|
|
cookies()
|
|
return <h1>Hello!</h1>
|
|
}
|