mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
When using page routes we need to pass the contents of the `export const config` to the `extraConfig` populating the functions config manifest rather then relying on named exports like in app router.
12 lines
197 B
TypeScript
12 lines
197 B
TypeScript
export default function Page({ data }) {
|
|
;<p>hello {data}</p>
|
|
}
|
|
|
|
export const config = {
|
|
maxDuration: 3,
|
|
}
|
|
|
|
export async function getServerSideProps() {
|
|
return { props: { data: 'world' } }
|
|
}
|