Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
23
node_modules/next/dist/esm/build/templates/pages-api.js
generated
vendored
Normal file
23
node_modules/next/dist/esm/build/templates/pages-api.js
generated
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import { PagesAPIRouteModule } from '../../server/route-modules/pages-api/module.compiled';
|
||||
import { RouteKind } from '../../server/route-kind';
|
||||
import { hoist } from './helpers';
|
||||
// Import the userland code.
|
||||
import * as userland from 'VAR_USERLAND';
|
||||
// Re-export the handler (should be the default export).
|
||||
export default hoist(userland, 'default');
|
||||
// Re-export config.
|
||||
export const config = hoist(userland, 'config');
|
||||
// Create and export the route module that will be consumed.
|
||||
export const routeModule = new PagesAPIRouteModule({
|
||||
definition: {
|
||||
kind: RouteKind.PAGES_API,
|
||||
page: 'VAR_DEFINITION_PAGE',
|
||||
pathname: 'VAR_DEFINITION_PATHNAME',
|
||||
// The following aren't used in production.
|
||||
bundlePath: '',
|
||||
filename: ''
|
||||
},
|
||||
userland
|
||||
});
|
||||
|
||||
//# sourceMappingURL=pages-api.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue