Files
next.js/test/e2e/app-dir/segment-config-ts/pages/config-satisfies.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

8 lines
144 B
TypeScript

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