@opexa/portal-components 0.0.32 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.d.ts +272 -0
- package/dist/config.js +39 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -1
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
import type { NextConfig } from 'next';
|
|
2
|
+
export declare function extendConfig(config: NextConfig): {
|
|
3
|
+
images: {
|
|
4
|
+
remotePatterns: (URL | import("next/dist/shared/lib/image-config").RemotePattern | {
|
|
5
|
+
hostname: string;
|
|
6
|
+
protocol: string;
|
|
7
|
+
})[];
|
|
8
|
+
deviceSizes?: number[] | undefined;
|
|
9
|
+
imageSizes?: number[] | undefined;
|
|
10
|
+
loader?: "default" | "imgix" | "cloudinary" | "akamai" | "custom" | undefined;
|
|
11
|
+
path?: string | undefined;
|
|
12
|
+
loaderFile?: string | undefined;
|
|
13
|
+
domains?: string[] | undefined;
|
|
14
|
+
disableStaticImages?: boolean | undefined;
|
|
15
|
+
minimumCacheTTL?: number | undefined;
|
|
16
|
+
formats?: ("image/avif" | "image/webp")[] | undefined;
|
|
17
|
+
dangerouslyAllowSVG?: boolean | undefined;
|
|
18
|
+
contentSecurityPolicy?: string | undefined;
|
|
19
|
+
contentDispositionType?: "inline" | "attachment" | undefined;
|
|
20
|
+
localPatterns?: import("next/dist/shared/lib/image-config").LocalPattern[] | undefined;
|
|
21
|
+
qualities?: number[] | undefined;
|
|
22
|
+
unoptimized?: boolean | undefined;
|
|
23
|
+
};
|
|
24
|
+
experimental: {
|
|
25
|
+
nodeMiddleware: boolean;
|
|
26
|
+
adapterPath?: string;
|
|
27
|
+
useSkewCookie?: boolean;
|
|
28
|
+
cacheHandlers?: {
|
|
29
|
+
default?: string;
|
|
30
|
+
remote?: string;
|
|
31
|
+
static?: string;
|
|
32
|
+
[handlerName: string]: string | undefined;
|
|
33
|
+
};
|
|
34
|
+
multiZoneDraftMode?: boolean;
|
|
35
|
+
appNavFailHandling?: boolean;
|
|
36
|
+
prerenderEarlyExit?: boolean;
|
|
37
|
+
linkNoTouchStart?: boolean;
|
|
38
|
+
caseSensitiveRoutes?: boolean;
|
|
39
|
+
clientSegmentCache?: boolean | "client-only";
|
|
40
|
+
dynamicOnHover?: boolean;
|
|
41
|
+
appDocumentPreloading?: boolean;
|
|
42
|
+
preloadEntriesOnStart?: boolean;
|
|
43
|
+
strictNextHead?: boolean;
|
|
44
|
+
clientRouterFilter?: boolean;
|
|
45
|
+
clientRouterFilterRedirects?: boolean;
|
|
46
|
+
staleTimes?: {
|
|
47
|
+
dynamic?: number;
|
|
48
|
+
static?: number;
|
|
49
|
+
};
|
|
50
|
+
cacheLife?: {
|
|
51
|
+
[profile: string]: {
|
|
52
|
+
stale?: number;
|
|
53
|
+
revalidate?: number;
|
|
54
|
+
expire?: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
clientRouterFilterAllowedRate?: number;
|
|
58
|
+
externalMiddlewareRewritesResolve?: boolean;
|
|
59
|
+
extensionAlias?: Record<string, any>;
|
|
60
|
+
allowedRevalidateHeaderKeys?: string[];
|
|
61
|
+
fetchCacheKeyPrefix?: string;
|
|
62
|
+
imgOptConcurrency?: number | null;
|
|
63
|
+
imgOptTimeoutInSeconds?: number;
|
|
64
|
+
imgOptMaxInputPixels?: number;
|
|
65
|
+
imgOptSequentialRead?: boolean | null;
|
|
66
|
+
optimisticClientCache?: boolean;
|
|
67
|
+
expireTime?: number;
|
|
68
|
+
middlewarePrefetch?: "strict" | "flexible";
|
|
69
|
+
manualClientBasePath?: boolean;
|
|
70
|
+
cssChunking?: boolean | "strict";
|
|
71
|
+
disablePostcssPresetEnv?: boolean;
|
|
72
|
+
cpus?: number;
|
|
73
|
+
memoryBasedWorkersCount?: boolean;
|
|
74
|
+
proxyTimeout?: number;
|
|
75
|
+
isrFlushToDisk?: boolean;
|
|
76
|
+
workerThreads?: boolean;
|
|
77
|
+
optimizeCss?: boolean | Record<string, unknown>;
|
|
78
|
+
nextScriptWorkers?: boolean;
|
|
79
|
+
scrollRestoration?: boolean;
|
|
80
|
+
externalDir?: boolean;
|
|
81
|
+
amp?: {
|
|
82
|
+
optimizer?: any;
|
|
83
|
+
validator?: string;
|
|
84
|
+
skipValidation?: boolean;
|
|
85
|
+
};
|
|
86
|
+
disableOptimizedLoading?: boolean;
|
|
87
|
+
gzipSize?: boolean;
|
|
88
|
+
craCompat?: boolean;
|
|
89
|
+
esmExternals?: boolean | "loose";
|
|
90
|
+
fullySpecified?: boolean;
|
|
91
|
+
urlImports?: NonNullable<import("next/dist/compiled/webpack/webpack").webpack.Configuration["experiments"]>["buildHttp"];
|
|
92
|
+
swcTraceProfiling?: boolean;
|
|
93
|
+
forceSwcTransforms?: boolean;
|
|
94
|
+
swcPlugins?: Array<[string, Record<string, unknown>]>;
|
|
95
|
+
largePageDataBytes?: number;
|
|
96
|
+
fallbackNodePolyfills?: false;
|
|
97
|
+
sri?: {
|
|
98
|
+
algorithm?: import("next/dist/build/webpack/plugins/subresource-integrity-plugin").SubresourceIntegrityAlgorithm;
|
|
99
|
+
};
|
|
100
|
+
webVitalsAttribution?: Array<typeof import("next/dist/shared/lib/utils").WEB_VITALS[number]>;
|
|
101
|
+
optimizePackageImports?: string[];
|
|
102
|
+
optimizeServerReact?: boolean;
|
|
103
|
+
turbo?: import("next/dist/server/config-shared").DeprecatedExperimentalTurboOptions;
|
|
104
|
+
turbopackMemoryLimit?: number;
|
|
105
|
+
turbopackMinify?: boolean;
|
|
106
|
+
turbopackPersistentCaching?: boolean;
|
|
107
|
+
turbopackSourceMaps?: boolean;
|
|
108
|
+
turbopackTreeShaking?: boolean;
|
|
109
|
+
mdxRs?: boolean | {
|
|
110
|
+
development?: boolean;
|
|
111
|
+
jsx?: boolean;
|
|
112
|
+
jsxRuntime?: string;
|
|
113
|
+
jsxImportSource?: string;
|
|
114
|
+
providerImportSource?: string;
|
|
115
|
+
mdxType?: "gfm" | "commonmark";
|
|
116
|
+
};
|
|
117
|
+
typedRoutes?: boolean;
|
|
118
|
+
typedEnv?: boolean;
|
|
119
|
+
parallelServerCompiles?: boolean;
|
|
120
|
+
parallelServerBuildTraces?: boolean;
|
|
121
|
+
webpackBuildWorker?: boolean;
|
|
122
|
+
webpackMemoryOptimizations?: boolean;
|
|
123
|
+
clientTraceMetadata?: string[];
|
|
124
|
+
ppr?: import("next/dist/server/lib/experimental/ppr").ExperimentalPPRConfig;
|
|
125
|
+
taint?: boolean;
|
|
126
|
+
routerBFCache?: boolean;
|
|
127
|
+
removeUncaughtErrorAndRejectionListeners?: boolean;
|
|
128
|
+
serverActions?: {
|
|
129
|
+
bodySizeLimit?: import("next").SizeLimit;
|
|
130
|
+
allowedOrigins?: string[];
|
|
131
|
+
};
|
|
132
|
+
serverMinification?: boolean;
|
|
133
|
+
enablePrerenderSourceMaps?: boolean;
|
|
134
|
+
serverSourceMaps?: boolean;
|
|
135
|
+
useWasmBinary?: boolean;
|
|
136
|
+
useLightningcss?: boolean;
|
|
137
|
+
useEarlyImport?: boolean;
|
|
138
|
+
viewTransition?: boolean;
|
|
139
|
+
testProxy?: boolean;
|
|
140
|
+
defaultTestRunner?: import("next/dist/cli/next-test").SupportedTestRunners;
|
|
141
|
+
allowDevelopmentBuild?: true;
|
|
142
|
+
bundlePagesExternals?: boolean;
|
|
143
|
+
serverComponentsExternalPackages?: string[];
|
|
144
|
+
reactCompiler?: boolean | import("next/dist/server/config-shared").ReactCompilerOptions;
|
|
145
|
+
staticGenerationRetryCount?: number;
|
|
146
|
+
staticGenerationMaxConcurrency?: number;
|
|
147
|
+
staticGenerationMinPagesPerWorker?: number;
|
|
148
|
+
serverComponentsHmrCache?: boolean;
|
|
149
|
+
dynamicIO?: boolean;
|
|
150
|
+
inlineCss?: boolean;
|
|
151
|
+
authInterrupts?: boolean;
|
|
152
|
+
useCache?: boolean;
|
|
153
|
+
slowModuleDetection?: {
|
|
154
|
+
buildTimeThresholdMs: number;
|
|
155
|
+
};
|
|
156
|
+
globalNotFound?: boolean;
|
|
157
|
+
devtoolSegmentExplorer?: boolean;
|
|
158
|
+
};
|
|
159
|
+
allowedDevOrigins?: string[];
|
|
160
|
+
exportPathMap?: (defaultMap: import("next/dist/server/config-shared").ExportPathMap, ctx: {
|
|
161
|
+
dev: boolean;
|
|
162
|
+
dir: string;
|
|
163
|
+
outDir: string | null;
|
|
164
|
+
distDir: string;
|
|
165
|
+
buildId: string;
|
|
166
|
+
}) => Promise<import("next/dist/server/config-shared").ExportPathMap> | import("next/dist/server/config-shared").ExportPathMap;
|
|
167
|
+
i18n?: import("next/dist/server/config-shared").I18NConfig | null;
|
|
168
|
+
eslint?: import("next/dist/server/config-shared").ESLintConfig;
|
|
169
|
+
typescript?: import("next/dist/server/config-shared").TypeScriptConfig;
|
|
170
|
+
headers?: () => Promise<import("next/dist/lib/load-custom-routes").Header[]>;
|
|
171
|
+
rewrites?: () => Promise<import("next/dist/lib/load-custom-routes").Rewrite[] | {
|
|
172
|
+
beforeFiles?: import("next/dist/lib/load-custom-routes").Rewrite[];
|
|
173
|
+
afterFiles?: import("next/dist/lib/load-custom-routes").Rewrite[];
|
|
174
|
+
fallback?: import("next/dist/lib/load-custom-routes").Rewrite[];
|
|
175
|
+
}>;
|
|
176
|
+
redirects?: () => Promise<import("next/dist/lib/load-custom-routes").Redirect[]>;
|
|
177
|
+
excludeDefaultMomentLocales?: boolean;
|
|
178
|
+
webpack?: import("next/dist/server/config-shared").NextJsWebpackConfig | null;
|
|
179
|
+
trailingSlash?: boolean;
|
|
180
|
+
env?: Record<string, string | undefined>;
|
|
181
|
+
distDir?: string;
|
|
182
|
+
cleanDistDir?: boolean;
|
|
183
|
+
assetPrefix?: string;
|
|
184
|
+
cacheHandler?: string | undefined;
|
|
185
|
+
cacheMaxMemorySize?: number;
|
|
186
|
+
useFileSystemPublicRoutes?: boolean;
|
|
187
|
+
generateBuildId?: () => string | null | Promise<string | null>;
|
|
188
|
+
generateEtags?: boolean;
|
|
189
|
+
pageExtensions?: string[];
|
|
190
|
+
compress?: boolean;
|
|
191
|
+
poweredByHeader?: boolean;
|
|
192
|
+
devIndicators?: false | {
|
|
193
|
+
appIsrStatus?: boolean;
|
|
194
|
+
buildActivity?: boolean;
|
|
195
|
+
buildActivityPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
196
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
197
|
+
};
|
|
198
|
+
onDemandEntries?: {
|
|
199
|
+
maxInactiveAge?: number;
|
|
200
|
+
pagesBufferLength?: number;
|
|
201
|
+
};
|
|
202
|
+
amp?: {
|
|
203
|
+
canonicalBase?: string;
|
|
204
|
+
};
|
|
205
|
+
deploymentId?: string;
|
|
206
|
+
basePath?: string;
|
|
207
|
+
sassOptions?: {
|
|
208
|
+
implementation?: string;
|
|
209
|
+
[key: string]: any;
|
|
210
|
+
};
|
|
211
|
+
productionBrowserSourceMaps?: boolean;
|
|
212
|
+
reactProductionProfiling?: boolean;
|
|
213
|
+
reactStrictMode?: boolean | null;
|
|
214
|
+
reactMaxHeadersLength?: number;
|
|
215
|
+
publicRuntimeConfig?: {
|
|
216
|
+
[key: string]: any;
|
|
217
|
+
};
|
|
218
|
+
serverRuntimeConfig?: {
|
|
219
|
+
[key: string]: any;
|
|
220
|
+
};
|
|
221
|
+
httpAgentOptions?: {
|
|
222
|
+
keepAlive?: boolean;
|
|
223
|
+
};
|
|
224
|
+
staticPageGenerationTimeout?: number;
|
|
225
|
+
crossOrigin?: "anonymous" | "use-credentials";
|
|
226
|
+
compiler?: {
|
|
227
|
+
reactRemoveProperties?: boolean | {
|
|
228
|
+
properties?: string[];
|
|
229
|
+
};
|
|
230
|
+
relay?: {
|
|
231
|
+
src: string;
|
|
232
|
+
artifactDirectory?: string;
|
|
233
|
+
language?: "typescript" | "javascript" | "flow";
|
|
234
|
+
eagerEsModules?: boolean;
|
|
235
|
+
};
|
|
236
|
+
removeConsole?: boolean | {
|
|
237
|
+
exclude?: string[];
|
|
238
|
+
};
|
|
239
|
+
styledComponents?: boolean | import("next/dist/server/config-shared").StyledComponentsConfig;
|
|
240
|
+
emotion?: boolean | import("next/dist/server/config-shared").EmotionConfig;
|
|
241
|
+
styledJsx?: boolean | {
|
|
242
|
+
useLightningcss?: boolean;
|
|
243
|
+
};
|
|
244
|
+
define?: Record<string, string>;
|
|
245
|
+
defineServer?: Record<string, string>;
|
|
246
|
+
runAfterProductionCompile?: (metadata: {
|
|
247
|
+
projectDir: string;
|
|
248
|
+
distDir: string;
|
|
249
|
+
}) => Promise<void>;
|
|
250
|
+
};
|
|
251
|
+
output?: "standalone" | "export";
|
|
252
|
+
transpilePackages?: string[];
|
|
253
|
+
turbopack?: import("next/dist/server/config-shared").TurbopackOptions;
|
|
254
|
+
skipMiddlewareUrlNormalize?: boolean;
|
|
255
|
+
skipTrailingSlashRedirect?: boolean;
|
|
256
|
+
modularizeImports?: Record<string, {
|
|
257
|
+
transform: string | Record<string, string>;
|
|
258
|
+
preventFullImport?: boolean;
|
|
259
|
+
skipDefaultConversion?: boolean;
|
|
260
|
+
}>;
|
|
261
|
+
logging?: import("next/dist/server/config-shared").LoggingConfig | false;
|
|
262
|
+
expireTime?: number;
|
|
263
|
+
bundlePagesRouterDependencies?: boolean;
|
|
264
|
+
serverExternalPackages?: string[];
|
|
265
|
+
outputFileTracingRoot?: string;
|
|
266
|
+
outputFileTracingExcludes?: Record<string, string[]>;
|
|
267
|
+
outputFileTracingIncludes?: Record<string, string[]>;
|
|
268
|
+
watchOptions?: {
|
|
269
|
+
pollIntervalMs?: number;
|
|
270
|
+
};
|
|
271
|
+
htmlLimitedBots?: RegExp;
|
|
272
|
+
};
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function extendConfig(config) {
|
|
2
|
+
return {
|
|
3
|
+
...config,
|
|
4
|
+
images: {
|
|
5
|
+
...config.images,
|
|
6
|
+
remotePatterns: [
|
|
7
|
+
...(config.images?.remotePatterns ?? []),
|
|
8
|
+
{
|
|
9
|
+
hostname: 'static.opexa.io',
|
|
10
|
+
protocol: 'https',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
hostname: 'static.development.opexa.io',
|
|
14
|
+
protocol: 'https',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
hostname: 'assets.opexacms.io',
|
|
18
|
+
protocol: 'https',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
hostname: 'assets.development.opexacms.io',
|
|
22
|
+
protocol: 'https',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
hostname: 's3.ap-east-1.amazonaws.com',
|
|
26
|
+
protocol: 'https',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
hostname: 'images.pexels.com',
|
|
30
|
+
protocol: 'https',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
experimental: {
|
|
35
|
+
...config.experimental,
|
|
36
|
+
nodeMiddleware: true,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
}
|