| import { PagesRouteModule } from '../../server/route-modules/pages/module.compiled' |
| import { RouteKind } from '../../server/route-kind' |
|
|
| import { hoist } from './helpers' |
|
|
| |
| import * as document from 'VAR_MODULE_DOCUMENT' |
| import * as app from 'VAR_MODULE_APP' |
|
|
| |
| import * as userland from 'VAR_USERLAND' |
| import { getHandler } from '../../server/route-modules/pages/pages-handler' |
|
|
| |
| export default hoist(userland, 'default') |
|
|
| |
| export const getStaticProps = hoist(userland, 'getStaticProps') |
| export const getStaticPaths = hoist(userland, 'getStaticPaths') |
| export const getServerSideProps = hoist(userland, 'getServerSideProps') |
| export const config = hoist(userland, 'config') |
| export const reportWebVitals = hoist(userland, 'reportWebVitals') |
|
|
| |
| export const unstable_getStaticProps = hoist( |
| userland, |
| 'unstable_getStaticProps' |
| ) |
| export const unstable_getStaticPaths = hoist( |
| userland, |
| 'unstable_getStaticPaths' |
| ) |
| export const unstable_getStaticParams = hoist( |
| userland, |
| 'unstable_getStaticParams' |
| ) |
| export const unstable_getServerProps = hoist( |
| userland, |
| 'unstable_getServerProps' |
| ) |
| export const unstable_getServerSideProps = hoist( |
| userland, |
| 'unstable_getServerSideProps' |
| ) |
|
|
| |
| export const routeModule = new PagesRouteModule({ |
| definition: { |
| kind: RouteKind.PAGES, |
| page: 'VAR_DEFINITION_PAGE', |
| pathname: 'VAR_DEFINITION_PATHNAME', |
| |
| bundlePath: '', |
| filename: '', |
| }, |
| distDir: process.env.__NEXT_RELATIVE_DIST_DIR || '', |
| relativeProjectDir: process.env.__NEXT_RELATIVE_PROJECT_DIR || '', |
| components: { |
| |
| App: app.default, |
| Document: document.default, |
| }, |
| userland, |
| }) |
|
|
| export const handler = getHandler({ |
| srcPage: 'VAR_DEFINITION_PAGE', |
| config, |
| userland, |
| routeModule, |
| getStaticPaths, |
| getStaticProps, |
| getServerSideProps, |
| }) |
|
|