Initial boiler plate project
This commit is contained in:
12
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.d.ts
generated
vendored
Normal file
12
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
import type { NextConfig } from '../../../../server/config-shared';
|
||||
import type { webpack } from 'next/dist/compiled/webpack/webpack';
|
||||
export type EdgeAppRouteLoaderQuery = {
|
||||
absolutePagePath: string;
|
||||
page: string;
|
||||
appDirLoader: string;
|
||||
preferredRegion: string | string[] | undefined;
|
||||
nextConfigOutput: NextConfig['output'];
|
||||
middlewareConfig: string;
|
||||
};
|
||||
declare const EdgeAppRouteLoader: webpack.LoaderDefinitionFunction<EdgeAppRouteLoaderQuery>;
|
||||
export default EdgeAppRouteLoader;
|
||||
41
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js
generated
vendored
Normal file
41
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js
generated
vendored
Normal file
@ -0,0 +1,41 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
Object.defineProperty(exports, "default", {
|
||||
enumerable: true,
|
||||
get: function() {
|
||||
return _default;
|
||||
}
|
||||
});
|
||||
const _getmodulebuildinfo = require("../get-module-build-info");
|
||||
const _stringifyrequest = require("../../stringify-request");
|
||||
const _constants = require("../../../../lib/constants");
|
||||
const _loadentrypoint = require("../../../load-entrypoint");
|
||||
const EdgeAppRouteLoader = async function() {
|
||||
const { page, absolutePagePath, preferredRegion, appDirLoader: appDirLoaderBase64 = "", middlewareConfig: middlewareConfigBase64 = "" } = this.getOptions();
|
||||
const appDirLoader = Buffer.from(appDirLoaderBase64, "base64").toString();
|
||||
const middlewareConfig = JSON.parse(Buffer.from(middlewareConfigBase64, "base64").toString());
|
||||
// Ensure we only run this loader for as a module.
|
||||
if (!this._module) throw new Error("This loader is only usable as a module");
|
||||
const buildInfo = (0, _getmodulebuildinfo.getModuleBuildInfo)(this._module);
|
||||
buildInfo.nextEdgeSSR = {
|
||||
isServerComponent: false,
|
||||
page: page,
|
||||
isAppDir: true
|
||||
};
|
||||
buildInfo.route = {
|
||||
page,
|
||||
absolutePagePath,
|
||||
preferredRegion,
|
||||
middlewareConfig
|
||||
};
|
||||
const stringifiedPagePath = (0, _stringifyrequest.stringifyRequest)(this, absolutePagePath);
|
||||
const modulePath = `${appDirLoader}${stringifiedPagePath.substring(1, stringifiedPagePath.length - 1)}?${_constants.WEBPACK_RESOURCE_QUERIES.edgeSSREntry}`;
|
||||
return await (0, _loadentrypoint.loadEntrypoint)("edge-app-route", {
|
||||
VAR_USERLAND: modulePath
|
||||
});
|
||||
};
|
||||
const _default = EdgeAppRouteLoader;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/webpack/loaders/next-edge-app-route-loader/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../../../../src/build/webpack/loaders/next-edge-app-route-loader/index.ts"],"names":["EdgeAppRouteLoader","page","absolutePagePath","preferredRegion","appDirLoader","appDirLoaderBase64","middlewareConfig","middlewareConfigBase64","getOptions","Buffer","from","toString","JSON","parse","_module","Error","buildInfo","getModuleBuildInfo","nextEdgeSSR","isServerComponent","isAppDir","route","stringifiedPagePath","stringifyRequest","modulePath","substring","length","WEBPACK_RESOURCE_QUERIES","edgeSSREntry","loadEntrypoint","VAR_USERLAND"],"mappings":";;;;+BA4DA;;;eAAA;;;oCA5DmC;kCACF;2BAGQ;gCAEV;AAW/B,MAAMA,qBACJ;IACE,MAAM,EACJC,IAAI,EACJC,gBAAgB,EAChBC,eAAe,EACfC,cAAcC,qBAAqB,EAAE,EACrCC,kBAAkBC,yBAAyB,EAAE,EAC9C,GAAG,IAAI,CAACC,UAAU;IAEnB,MAAMJ,eAAeK,OAAOC,IAAI,CAACL,oBAAoB,UAAUM,QAAQ;IACvE,MAAML,mBAAqCM,KAAKC,KAAK,CACnDJ,OAAOC,IAAI,CAACH,wBAAwB,UAAUI,QAAQ;IAGxD,kDAAkD;IAClD,IAAI,CAAC,IAAI,CAACG,OAAO,EAAE,MAAM,IAAIC,MAAM;IAEnC,MAAMC,YAAYC,IAAAA,sCAAkB,EAAC,IAAI,CAACH,OAAO;IAEjDE,UAAUE,WAAW,GAAG;QACtBC,mBAAmB;QACnBlB,MAAMA;QACNmB,UAAU;IACZ;IACAJ,UAAUK,KAAK,GAAG;QAChBpB;QACAC;QACAC;QACAG;IACF;IAEA,MAAMgB,sBAAsBC,IAAAA,kCAAgB,EAAC,IAAI,EAAErB;IACnD,MAAMsB,aAAa,CAAC,EAAEpB,aAAa,EAAEkB,oBAAoBG,SAAS,CAChE,GACAH,oBAAoBI,MAAM,GAAG,GAC7B,CAAC,EAAEC,mCAAwB,CAACC,YAAY,CAAC,CAAC;IAE5C,OAAO,MAAMC,IAAAA,8BAAc,EAAC,kBAAkB;QAC5CC,cAAcN;IAChB;AACF;MAEF,WAAexB"}
|
||||
Reference in New Issue
Block a user