Files
next.js/test/e2e/app-dir/segment-config-ts/pages/config-as-const.tsx
Niklas MischkulnigandGitHub a226531900 Support type cast expressions in page static info extractor (#92837)
So that
```ts
export const runtime = "node" as const
export const runtime = "node" as string
export const runtime = "node" satisfies string // was already working
```
works
2026-04-16 15:52:41 +02:00

6 lines
117 B
TypeScript

export const config = { maxDuration: 1000 } as const
export default function Page() {
return <main>hello</main>
}