123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684 |
- "use strict";
- var _imageConfig = require("../shared/lib/image-config");
- const configSchema = {
- type: "object",
- additionalProperties: false,
- properties: {
- amp: {
- additionalProperties: false,
- properties: {
- canonicalBase: {
- minLength: 1,
- type: "string"
- }
- },
- type: "object"
- },
- analyticsId: {
- type: "string"
- },
- assetPrefix: {
- minLength: 1,
- type: "string"
- },
- basePath: {
- type: "string"
- },
- cleanDistDir: {
- type: "boolean"
- },
- compiler: {
- additionalProperties: false,
- properties: {
- emotion: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "object",
- additionalProperties: false,
- properties: {
- sourceMap: {
- type: "boolean"
- },
- autoLabel: {
- type: "string",
- enum: [
- "always",
- "dev-only",
- "never"
- ]
- },
- labelFormat: {
- type: "string",
- minLength: 1
- }
- }
- },
- ]
- },
- reactRemoveProperties: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "object",
- additionalProperties: false,
- properties: {
- properties: {
- type: "array",
- items: {
- type: "string"
- }
- }
- }
- },
- ]
- },
- relay: {
- type: "object"
- },
- removeConsole: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "object",
- additionalProperties: false,
- properties: {
- exclude: {
- type: "array",
- items: {
- type: "string",
- minLength: 1
- }
- }
- }
- },
- ]
- },
- styledComponents: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "object",
- additionalProperties: false,
- properties: {
- displayName: {
- type: "boolean"
- },
- topLevelImportPaths: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "array",
- items: {
- type: "string",
- minLength: 1
- }
- },
- ]
- },
- ssr: {
- type: "boolean"
- },
- fileName: {
- type: "boolean"
- },
- meaninglessFileNames: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "array",
- items: {
- type: "string",
- minLength: 1
- }
- },
- ]
- },
- minify: {
- type: "boolean"
- },
- transpileTemplateLiterals: {
- type: "boolean"
- },
- namespace: {
- type: "string",
- minLength: 1
- },
- pure: {
- type: "boolean"
- },
- cssProp: {
- type: "boolean"
- }
- }
- },
- ]
- }
- },
- type: "object"
- },
- compress: {
- type: "boolean"
- },
- crossOrigin: {
- oneOf: [
- false,
- {
- enum: [
- "anonymous",
- "use-credentials"
- ],
- type: "string"
- },
- ]
- },
- devIndicators: {
- additionalProperties: false,
- properties: {
- buildActivity: {
- type: "boolean"
- },
- buildActivityPosition: {
- // automatic typing does not like enum
- enum: [
- "bottom-left",
- "bottom-right",
- "top-left",
- "top-right"
- ],
- type: "string"
- }
- },
- type: "object"
- },
- distDir: {
- minLength: 1,
- type: "string",
- nullable: true
- },
- env: {
- type: "object"
- },
- eslint: {
- additionalProperties: false,
- properties: {
- dirs: {
- items: {
- minLength: 1,
- type: "string"
- },
- type: "array"
- },
- ignoreDuringBuilds: {
- type: "boolean"
- }
- },
- type: "object"
- },
- excludeDefaultMomentLocales: {
- type: "boolean"
- },
- experimental: {
- additionalProperties: false,
- properties: {
- adjustFontFallbacks: {
- type: "boolean"
- },
- allowMiddlewareResponseBody: {
- type: "boolean"
- },
- amp: {
- additionalProperties: false,
- properties: {
- optimizer: {
- type: "object"
- },
- skipValidation: {
- type: "boolean"
- },
- validator: {
- type: "string"
- }
- },
- type: "object"
- },
- appDir: {
- type: "boolean"
- },
- browsersListForSwc: {
- type: "boolean"
- },
- cpus: {
- type: "number"
- },
- craCompat: {
- type: "boolean"
- },
- disableOptimizedLoading: {
- type: "boolean"
- },
- disablePostcssPresetEnv: {
- type: "boolean"
- },
- esmExternals: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- const: "loose"
- },
- ]
- },
- externalDir: {
- type: "boolean"
- },
- fallbackNodePolyfills: {
- type: "boolean"
- },
- forceSwcTransforms: {
- type: "boolean"
- },
- fullySpecified: {
- type: "boolean"
- },
- gzipSize: {
- type: "boolean"
- },
- incrementalCacheHandlerPath: {
- type: "string"
- },
- isrFlushToDisk: {
- type: "boolean"
- },
- isrMemoryCacheSize: {
- type: "number"
- },
- largePageDataBytes: {
- type: "number"
- },
- legacyBrowsers: {
- type: "boolean"
- },
- manualClientBasePath: {
- type: "boolean"
- },
- modularizeImports: {
- type: "object"
- },
- newNextLinkBehavior: {
- type: "boolean"
- },
- nextScriptWorkers: {
- type: "boolean"
- },
- optimizeCss: {
- oneOf: [
- {
- type: "boolean"
- },
- {
- type: "object"
- },
- ]
- },
- optimisticClientCache: {
- type: "boolean"
- },
- outputFileTracingRoot: {
- minLength: 1,
- type: "string"
- },
- pageEnv: {
- type: "boolean"
- },
- profiling: {
- type: "boolean"
- },
- proxyTimeout: {
- minimum: 0,
- type: "number"
- },
- runtime: {
- // automatic typing doesn't like enum
- enum: [
- "experimental-edge",
- "nodejs"
- ],
- type: "string"
- },
- scrollRestoration: {
- type: "boolean"
- },
- serverComponents: {
- type: "boolean"
- },
- sharedPool: {
- type: "boolean"
- },
- skipMiddlewareUrlNormalize: {
- type: "boolean"
- },
- skipTrailingSlashRedirect: {
- type: "boolean"
- },
- sri: {
- properties: {
- algorithm: {
- enum: [
- "sha256",
- "sha384",
- "sha512"
- ],
- type: "string"
- }
- },
- type: "object"
- },
- swcFileReading: {
- type: "boolean"
- },
- swcMinify: {
- type: "boolean"
- },
- swcMinifyDebugOptions: {
- additionalProperties: false,
- properties: {
- compress: {
- type: "object"
- },
- mangle: {
- type: "object"
- }
- },
- type: "object"
- },
- swcPlugins: {
- type: "array"
- },
- swcTraceProfiling: {
- type: "boolean"
- },
- urlImports: {
- items: {
- type: "string"
- },
- type: "array"
- },
- workerThreads: {
- type: "boolean"
- }
- },
- type: "object"
- },
- exportPathMap: {
- isFunction: true,
- errorMessage: "must be a function that returns a Promise"
- },
- future: {
- additionalProperties: false,
- properties: {},
- type: "object"
- },
- generateBuildId: {
- isFunction: true,
- errorMessage: "must be a function that returns a Promise"
- },
- generateEtags: {
- type: "boolean"
- },
- headers: {
- isFunction: true,
- errorMessage: "must be a function that returns a Promise"
- },
- httpAgentOptions: {
- additionalProperties: false,
- properties: {
- keepAlive: {
- type: "boolean"
- }
- },
- type: "object"
- },
- i18n: {
- additionalProperties: false,
- properties: {
- defaultLocale: {
- minLength: 1,
- type: "string"
- },
- domains: {
- items: {
- additionalProperties: false,
- properties: {
- defaultLocale: {
- minLength: 1,
- type: "string"
- },
- domain: {
- minLength: 1,
- type: "string"
- },
- http: {
- type: "boolean"
- },
- locales: {
- items: {
- minLength: 1,
- type: "string"
- },
- type: "array"
- }
- },
- type: "object"
- },
- type: "array"
- },
- localeDetection: {
- type: "boolean"
- },
- locales: {
- items: {
- minLength: 1,
- type: "string"
- },
- type: "array"
- }
- },
- type: "object"
- },
- images: {
- additionalProperties: false,
- properties: {
- remotePatterns: {
- items: {
- additionalProperties: false,
- properties: {
- hostname: {
- minLength: 1,
- type: "string"
- },
- pathname: {
- minLength: 1,
- type: "string"
- },
- port: {
- minLength: 1,
- type: "string"
- },
- protocol: {
- // automatic typing doesn't like enum
- enum: [
- "http",
- "https"
- ],
- type: "string"
- }
- },
- type: "object"
- },
- type: "array"
- },
- unoptimized: {
- type: "boolean"
- },
- contentSecurityPolicy: {
- minLength: 1,
- type: "string"
- },
- dangerouslyAllowSVG: {
- type: "boolean"
- },
- deviceSizes: {
- items: {
- type: "number"
- },
- minItems: 1,
- type: "array"
- },
- disableStaticImages: {
- type: "boolean"
- },
- domains: {
- items: {
- type: "string"
- },
- type: "array"
- },
- formats: {
- items: {
- enum: [
- "image/avif",
- "image/webp"
- ],
- type: "string"
- },
- type: "array"
- },
- imageSizes: {
- items: {
- type: "number"
- },
- minItems: 1,
- type: "array"
- },
- loader: {
- // automatic typing does not like enum
- enum: _imageConfig.VALID_LOADERS,
- type: "string"
- },
- minimumCacheTTL: {
- type: "number"
- },
- path: {
- minLength: 1,
- type: "string"
- }
- },
- type: "object"
- },
- onDemandEntries: {
- additionalProperties: false,
- properties: {
- maxInactiveAge: {
- type: "number"
- },
- pagesBufferLength: {
- type: "number"
- }
- },
- type: "object"
- },
- optimizeFonts: {
- type: "boolean"
- },
- output: {
- // automatic typing doesn't like enum
- enum: [
- "standalone"
- ],
- type: "string"
- },
- outputFileTracing: {
- type: "boolean"
- },
- pageExtensions: {
- minItems: 1,
- type: "array"
- },
- poweredByHeader: {
- type: "boolean"
- },
- productionBrowserSourceMaps: {
- type: "boolean"
- },
- publicRuntimeConfig: {
- type: "object"
- },
- reactStrictMode: {
- type: "boolean"
- },
- redirects: {
- isFunction: true,
- errorMessage: "must be a function that returns a Promise"
- },
- rewrites: {
- isFunction: true,
- errorMessage: "must be a function that returns a Promise"
- },
- sassOptions: {
- type: "object"
- },
- serverRuntimeConfig: {
- type: "object"
- },
- staticPageGenerationTimeout: {
- type: "number"
- },
- swcMinify: {
- type: "boolean"
- },
- trailingSlash: {
- type: "boolean"
- },
- typescript: {
- additionalProperties: false,
- properties: {
- ignoreBuildErrors: {
- type: "boolean"
- },
- tsconfigPath: {
- minLength: 1,
- type: "string"
- }
- },
- type: "object"
- },
- useFileSystemPublicRoutes: {
- type: "boolean"
- },
- webpack: {
- isFunction: true,
- errorMessage: "must be a function that returns a webpack configuration object"
- }
- }
- };
- // module.exports is used to get around an export bug with TypeScript
- // and the Ajv automatic typing
- module.exports = {
- configSchema
- };
- //# sourceMappingURL=config-schema.js.map
|