Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
39
node_modules/next/dist/build/segment-config/pages/pages-segment-config.d.ts
generated
vendored
Normal file
39
node_modules/next/dist/build/segment-config/pages/pages-segment-config.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
/**
|
||||
* Parse the page segment config.
|
||||
* @param data - The data to parse.
|
||||
* @param route - The route of the page.
|
||||
* @returns The parsed page segment config.
|
||||
*/
|
||||
export declare function parsePagesSegmentConfig(data: unknown, route: string): PagesSegmentConfig;
|
||||
export type PagesSegmentConfigConfig = {
|
||||
/**
|
||||
* Enables AMP for the page.
|
||||
*/
|
||||
amp?: boolean | 'hybrid';
|
||||
/**
|
||||
* The maximum duration for the page render.
|
||||
*/
|
||||
maxDuration?: number;
|
||||
/**
|
||||
* The runtime to use for the page.
|
||||
*/
|
||||
runtime?: 'edge' | 'experimental-edge' | 'nodejs';
|
||||
/**
|
||||
* The preferred region for the page.
|
||||
*/
|
||||
regions?: string[];
|
||||
};
|
||||
export type PagesSegmentConfig = {
|
||||
/**
|
||||
* The runtime to use for the page.
|
||||
*/
|
||||
runtime?: 'edge' | 'experimental-edge' | 'nodejs';
|
||||
/**
|
||||
* The maximum duration for the page render.
|
||||
*/
|
||||
maxDuration?: number;
|
||||
/**
|
||||
* The exported config object for the page.
|
||||
*/
|
||||
config?: PagesSegmentConfigConfig;
|
||||
};
|
||||
68
node_modules/next/dist/build/segment-config/pages/pages-segment-config.js
generated
vendored
Normal file
68
node_modules/next/dist/build/segment-config/pages/pages-segment-config.js
generated
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
0 && (module.exports = {
|
||||
PagesSegmentConfigSchemaKeys: null,
|
||||
parsePagesSegmentConfig: null
|
||||
});
|
||||
function _export(target, all) {
|
||||
for(var name in all)Object.defineProperty(target, name, {
|
||||
enumerable: true,
|
||||
get: all[name]
|
||||
});
|
||||
}
|
||||
_export(exports, {
|
||||
PagesSegmentConfigSchemaKeys: function() {
|
||||
return PagesSegmentConfigSchemaKeys;
|
||||
},
|
||||
parsePagesSegmentConfig: function() {
|
||||
return parsePagesSegmentConfig;
|
||||
}
|
||||
});
|
||||
const _zod = require("next/dist/compiled/zod");
|
||||
const _zod1 = require("../../../shared/lib/zod");
|
||||
/**
|
||||
* The schema for the page segment config.
|
||||
*/ const PagesSegmentConfigSchema = _zod.z.object({
|
||||
/**
|
||||
* The runtime to use for the page.
|
||||
*/ runtime: _zod.z.enum([
|
||||
'edge',
|
||||
'experimental-edge',
|
||||
'nodejs'
|
||||
]).optional(),
|
||||
/**
|
||||
* The maximum duration for the page render.
|
||||
*/ maxDuration: _zod.z.number().optional(),
|
||||
/**
|
||||
* The exported config object for the page.
|
||||
*/ config: _zod.z.object({
|
||||
/**
|
||||
* Enables AMP for the page.
|
||||
*/ amp: _zod.z.union([
|
||||
_zod.z.boolean(),
|
||||
_zod.z.literal('hybrid')
|
||||
]).optional(),
|
||||
/**
|
||||
* The runtime to use for the page.
|
||||
*/ runtime: _zod.z.enum([
|
||||
'edge',
|
||||
'experimental-edge',
|
||||
'nodejs'
|
||||
]).optional(),
|
||||
/**
|
||||
* The maximum duration for the page render.
|
||||
*/ maxDuration: _zod.z.number().optional()
|
||||
}).optional()
|
||||
});
|
||||
function parsePagesSegmentConfig(data, route) {
|
||||
const parsed = PagesSegmentConfigSchema.safeParse(data, {});
|
||||
if (!parsed.success) {
|
||||
throw (0, _zod1.formatZodError)(`Invalid segment configuration options detected for "${route}". Read more at https://nextjs.org/docs/messages/invalid-page-config`, parsed.error);
|
||||
}
|
||||
return parsed.data;
|
||||
}
|
||||
const PagesSegmentConfigSchemaKeys = PagesSegmentConfigSchema.keyof().options;
|
||||
|
||||
//# sourceMappingURL=pages-segment-config.js.map
|
||||
1
node_modules/next/dist/build/segment-config/pages/pages-segment-config.js.map
generated
vendored
Normal file
1
node_modules/next/dist/build/segment-config/pages/pages-segment-config.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"sources":["../../../../src/build/segment-config/pages/pages-segment-config.ts"],"sourcesContent":["import { z } from 'next/dist/compiled/zod'\nimport { formatZodError } from '../../../shared/lib/zod'\n\n/**\n * The schema for the page segment config.\n */\nconst PagesSegmentConfigSchema = z.object({\n /**\n * The runtime to use for the page.\n */\n runtime: z.enum(['edge', 'experimental-edge', 'nodejs']).optional(),\n\n /**\n * The maximum duration for the page render.\n */\n maxDuration: z.number().optional(),\n\n /**\n * The exported config object for the page.\n */\n config: z\n .object({\n /**\n * Enables AMP for the page.\n */\n amp: z.union([z.boolean(), z.literal('hybrid')]).optional(),\n\n /**\n * The runtime to use for the page.\n */\n runtime: z.enum(['edge', 'experimental-edge', 'nodejs']).optional(),\n\n /**\n * The maximum duration for the page render.\n */\n maxDuration: z.number().optional(),\n })\n .optional(),\n})\n\n/**\n * Parse the page segment config.\n * @param data - The data to parse.\n * @param route - The route of the page.\n * @returns The parsed page segment config.\n */\nexport function parsePagesSegmentConfig(\n data: unknown,\n route: string\n): PagesSegmentConfig {\n const parsed = PagesSegmentConfigSchema.safeParse(data, {})\n if (!parsed.success) {\n throw formatZodError(\n `Invalid segment configuration options detected for \"${route}\". Read more at https://nextjs.org/docs/messages/invalid-page-config`,\n parsed.error\n )\n }\n\n return parsed.data\n}\n\n/**\n * The keys of the configuration for a page.\n *\n * @internal - required to exclude zod types from the build\n */\nexport const PagesSegmentConfigSchemaKeys =\n PagesSegmentConfigSchema.keyof().options\n\nexport type PagesSegmentConfigConfig = {\n /**\n * Enables AMP for the page.\n */\n amp?: boolean | 'hybrid'\n\n /**\n * The maximum duration for the page render.\n */\n maxDuration?: number\n\n /**\n * The runtime to use for the page.\n */\n runtime?: 'edge' | 'experimental-edge' | 'nodejs'\n\n /**\n * The preferred region for the page.\n */\n regions?: string[]\n}\n\nexport type PagesSegmentConfig = {\n /**\n * The runtime to use for the page.\n */\n runtime?: 'edge' | 'experimental-edge' | 'nodejs'\n\n /**\n * The maximum duration for the page render.\n */\n maxDuration?: number\n\n /**\n * The exported config object for the page.\n */\n config?: PagesSegmentConfigConfig\n}\n"],"names":["PagesSegmentConfigSchemaKeys","parsePagesSegmentConfig","PagesSegmentConfigSchema","z","object","runtime","enum","optional","maxDuration","number","config","amp","union","boolean","literal","data","route","parsed","safeParse","success","formatZodError","error","keyof","options"],"mappings":";;;;;;;;;;;;;;;IAkEaA,4BAA4B;eAA5BA;;IApBGC,uBAAuB;eAAvBA;;;qBA9CE;sBACa;AAE/B;;CAEC,GACD,MAAMC,2BAA2BC,MAAC,CAACC,MAAM,CAAC;IACxC;;GAEC,GACDC,SAASF,MAAC,CAACG,IAAI,CAAC;QAAC;QAAQ;QAAqB;KAAS,EAAEC,QAAQ;IAEjE;;GAEC,GACDC,aAAaL,MAAC,CAACM,MAAM,GAAGF,QAAQ;IAEhC;;GAEC,GACDG,QAAQP,MAAC,CACNC,MAAM,CAAC;QACN;;OAEC,GACDO,KAAKR,MAAC,CAACS,KAAK,CAAC;YAACT,MAAC,CAACU,OAAO;YAAIV,MAAC,CAACW,OAAO,CAAC;SAAU,EAAEP,QAAQ;QAEzD;;OAEC,GACDF,SAASF,MAAC,CAACG,IAAI,CAAC;YAAC;YAAQ;YAAqB;SAAS,EAAEC,QAAQ;QAEjE;;OAEC,GACDC,aAAaL,MAAC,CAACM,MAAM,GAAGF,QAAQ;IAClC,GACCA,QAAQ;AACb;AAQO,SAASN,wBACdc,IAAa,EACbC,KAAa;IAEb,MAAMC,SAASf,yBAAyBgB,SAAS,CAACH,MAAM,CAAC;IACzD,IAAI,CAACE,OAAOE,OAAO,EAAE;QACnB,MAAMC,IAAAA,oBAAc,EAClB,CAAC,oDAAoD,EAAEJ,MAAM,oEAAoE,CAAC,EAClIC,OAAOI,KAAK;IAEhB;IAEA,OAAOJ,OAAOF,IAAI;AACpB;AAOO,MAAMf,+BACXE,yBAAyBoB,KAAK,GAAGC,OAAO"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue