main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
// @ts-ignore this need to be imported from next/dist to be external
import * as module from "next/dist/server/future/route-modules/pages-api/module.compiled";
import { RouteKind } from "../../server/future/route-kind";
import { hoist } from "./helpers";
const PagesAPIRouteModule = module.PagesAPIRouteModule;
// Import the userland code.
// @ts-expect-error - replaced by webpack/turbopack loader
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