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
11 lines
206 B
JavaScript
11 lines
206 B
JavaScript
'use client'
|
|
import { usePathname } from 'next/navigation'
|
|
|
|
export const dynamicParams = false
|
|
|
|
export default function Page() {
|
|
const pathname = usePathname()
|
|
|
|
return <p id="pathname">{pathname}</p>
|
|
}
|