@kasperpeulen/vitest-plugin-nextjs 0.0.0-stage → 0.1.0-alpha.1
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/README.md +249 -2
- package/dist/_virtual/_rolldown/runtime.js +14 -0
- package/dist/action-ids.d.ts +18 -0
- package/dist/action-ids.js +44 -0
- package/dist/adapter.d.ts +8 -0
- package/dist/adapter.js +12 -0
- package/dist/app-requests.d.ts +63 -0
- package/dist/app-requests.js +253 -0
- package/dist/browser-context.d.ts +24 -0
- package/dist/browser-context.js +157 -0
- package/dist/build-output.d.ts +68 -0
- package/dist/build-output.js +216 -0
- package/dist/build.d.ts +26 -0
- package/dist/build.js +39 -0
- package/dist/built-files.d.ts +9 -0
- package/dist/built-files.js +22 -0
- package/dist/cache.d.ts +44 -0
- package/dist/cache.js +99 -0
- package/dist/client-components.d.ts +3 -0
- package/dist/client-components.js +4 -0
- package/dist/client-file-key.d.ts +5 -0
- package/dist/client-file-key.js +5 -0
- package/dist/client-files.d.ts +83 -0
- package/dist/client-files.js +186 -0
- package/dist/client-graph.d.ts +94 -0
- package/dist/client-graph.js +266 -0
- package/dist/client-modules.d.ts +10 -0
- package/dist/client-modules.js +43 -0
- package/dist/client.d.ts +42 -0
- package/dist/client.js +263 -0
- package/dist/commonjs.d.ts +44 -0
- package/dist/commonjs.js +111 -0
- package/dist/compat/browser/client.d.ts +19 -0
- package/dist/compat/browser/client.js +13 -0
- package/dist/compat/build.d.ts +145 -0
- package/dist/compat/build.js +149 -0
- package/dist/compat/checks.d.ts +16 -0
- package/dist/compat/checks.js +148 -0
- package/dist/compat/patches.d.ts +13 -0
- package/dist/compat/patches.js +30 -0
- package/dist/compat/paths.d.ts +74 -0
- package/dist/compat/paths.js +160 -0
- package/dist/compat/rsc/handlers.d.ts +2 -0
- package/dist/compat/rsc/handlers.js +2 -0
- package/dist/compat/rsc/prerender.d.ts +10 -0
- package/dist/compat/rsc/prerender.js +9 -0
- package/dist/compat/server/headers.d.ts +3 -0
- package/dist/compat/server/headers.js +3 -0
- package/dist/compat/ssr/build-output.d.ts +4 -0
- package/dist/compat/ssr/build-output.js +3 -0
- package/dist/compat/ssr/cache.d.ts +6 -0
- package/dist/compat/ssr/cache.js +6 -0
- package/dist/compat/ssr/handler.d.ts +8 -0
- package/dist/compat/ssr/handler.js +8 -0
- package/dist/compat/ssr/node-server.d.ts +5 -0
- package/dist/compat/ssr/node-server.js +4 -0
- package/dist/compat/ssr/render-errors.d.ts +4 -0
- package/dist/compat/ssr/render-errors.js +4 -0
- package/dist/compat/ssr/senders.d.ts +6 -0
- package/dist/compat/ssr/senders.js +6 -0
- package/dist/compat/types.d.ts +8 -0
- package/dist/compat/types.js +1 -0
- package/dist/compile.d.ts +39 -0
- package/dist/compile.js +175 -0
- package/dist/disk.d.ts +16 -0
- package/dist/disk.js +13 -0
- package/dist/document-loads.d.ts +15 -0
- package/dist/document-loads.js +53 -0
- package/dist/document.d.ts +79 -0
- package/dist/document.js +330 -0
- package/dist/downloads.d.ts +15 -0
- package/dist/downloads.js +71 -0
- package/dist/esm-require.d.ts +11 -0
- package/dist/esm-require.js +32 -0
- package/dist/fast-crypto/index.js +1093 -0
- package/dist/fast-crypto.d.ts +20 -0
- package/dist/fast-crypto.js +151 -0
- package/dist/flight.d.ts +19 -0
- package/dist/flight.js +42 -0
- package/dist/form-submission.d.ts +15 -0
- package/dist/form-submission.js +27 -0
- package/dist/from-page.d.ts +5 -0
- package/dist/from-page.js +44 -0
- package/dist/globals.d.ts +1 -0
- package/dist/globals.js +197 -0
- package/dist/host-document.d.ts +26 -0
- package/dist/host-document.js +34 -0
- package/dist/host-return-shared.d.ts +5 -0
- package/dist/host-return-shared.js +5 -0
- package/dist/host-return.d.ts +5 -0
- package/dist/host-return.js +16 -0
- package/dist/index.d.ts +280 -0
- package/dist/index.js +281 -0
- package/dist/internal.d.ts +2 -0
- package/dist/internal.js +3 -0
- package/dist/leftovers.d.ts +11 -0
- package/dist/leftovers.js +55 -0
- package/dist/mode.d.ts +169 -0
- package/dist/mode.js +31 -0
- package/dist/node/LICENSES.md +3540 -0
- package/dist/node/assert/strict.js +29 -0
- package/dist/node/assert.js +3044 -0
- package/dist/node/buffer.js +1499 -0
- package/dist/node/child_process.js +45 -0
- package/dist/node/cluster.js +85 -0
- package/dist/node/console.js +96 -0
- package/dist/node/constants.js +495 -0
- package/dist/node/crypto.js +1388 -0
- package/dist/node/dgram.js +78 -0
- package/dist/node/diagnostics_channel.js +122 -0
- package/dist/node/dns/promises.js +129 -0
- package/dist/node/dns.js +137 -0
- package/dist/node/domain.js +43 -0
- package/dist/node/events.js +1155 -0
- package/dist/node/fs/promises.js +40 -0
- package/dist/node/fs.js +10375 -0
- package/dist/node/http.js +326 -0
- package/dist/node/http2.js +305 -0
- package/dist/node/https.js +57 -0
- package/dist/node/inspector/promises.js +66 -0
- package/dist/node/inspector.js +76 -0
- package/dist/node/module.js +205 -0
- package/dist/node/net.js +392 -0
- package/dist/node/os.js +259 -0
- package/dist/node/path/posix.js +25 -0
- package/dist/node/path/win32.js +25 -0
- package/dist/node/path.js +384 -0
- package/dist/node/perf_hooks.js +313 -0
- package/dist/node/process.js +452 -0
- package/dist/node/punycode.js +178 -0
- package/dist/node/querystring.js +934 -0
- package/dist/node/readline/promises.js +71 -0
- package/dist/node/readline.js +56 -0
- package/dist/node/repl.js +44 -0
- package/dist/node/sqlite.js +22 -0
- package/dist/node/stream/consumers.js +47 -0
- package/dist/node/stream/promises.js +6 -0
- package/dist/node/stream/web.js +52 -0
- package/dist/node/stream.js +4323 -0
- package/dist/node/string_decoder.js +276 -0
- package/dist/node/sys.js +6 -0
- package/dist/node/timers/promises.js +71 -0
- package/dist/node/timers.js +133 -0
- package/dist/node/tls.js +122 -0
- package/dist/node/trace_events.js +23 -0
- package/dist/node/tty.js +69 -0
- package/dist/node/url.js +1426 -0
- package/dist/node/util/types.js +1456 -0
- package/dist/node/util.js +4807 -0
- package/dist/node/v8.js +160 -0
- package/dist/node/vm.js +88 -0
- package/dist/node/wasi.js +16 -0
- package/dist/node/worker_threads.js +123 -0
- package/dist/node/zlib.js +1396 -0
- package/dist/node-builtins.d.ts +40 -0
- package/dist/node-builtins.js +74 -0
- package/dist/node-on-page.d.ts +46 -0
- package/dist/node-on-page.js +101 -0
- package/dist/node-platform.d.ts +36 -0
- package/dist/node-platform.js +152 -0
- package/dist/node-rendered.d.ts +21 -0
- package/dist/node-rendered.js +26 -0
- package/dist/node-server.d.ts +46 -0
- package/dist/node-server.js +193 -0
- package/dist/not-found-page.d.ts +19 -0
- package/dist/not-found-page.js +74 -0
- package/dist/optimizer-cache-key.d.ts +26 -0
- package/dist/optimizer-cache-key.js +73 -0
- package/dist/own-package.d.ts +1 -0
- package/dist/own-package.js +6 -0
- package/dist/page-store.d.ts +33 -0
- package/dist/page-store.js +80 -0
- package/dist/page-timers.d.ts +22 -0
- package/dist/page-timers.js +47 -0
- package/dist/page.d.ts +112 -0
- package/dist/page.js +549 -0
- package/dist/paths.d.ts +13 -0
- package/dist/paths.js +47 -0
- package/dist/plugin.d.ts +23 -0
- package/dist/plugin.js +1006 -0
- package/dist/prerender-verdict.d.ts +8 -0
- package/dist/prerender-verdict.js +67 -0
- package/dist/project/context.d.ts +546 -0
- package/dist/project/context.js +111 -0
- package/dist/project/entries.d.ts +42 -0
- package/dist/project/entries.js +189 -0
- package/dist/project/env-worker.d.ts +1 -0
- package/dist/project/env-worker.js +9 -0
- package/dist/project/env.d.ts +36 -0
- package/dist/project/env.js +82 -0
- package/dist/project/layers.d.ts +31 -0
- package/dist/project/layers.js +150 -0
- package/dist/project/loaders.d.ts +71 -0
- package/dist/project/loaders.js +300 -0
- package/dist/project/metadata.d.ts +8 -0
- package/dist/project/metadata.js +34 -0
- package/dist/project/module-exports.d.ts +29 -0
- package/dist/project/module-exports.js +77 -0
- package/dist/project/routes.d.ts +19 -0
- package/dist/project/routes.js +92 -0
- package/dist/project/routing.d.ts +46 -0
- package/dist/project/routing.js +280 -0
- package/dist/project/transform.d.ts +8 -0
- package/dist/project/transform.js +110 -0
- package/dist/project/webpack.d.ts +65 -0
- package/dist/project/webpack.js +191 -0
- package/dist/project.d.ts +269 -0
- package/dist/project.js +58 -0
- package/dist/registry-global.d.ts +5 -0
- package/dist/registry-global.js +5 -0
- package/dist/registry.d.ts +241 -0
- package/dist/registry.js +30 -0
- package/dist/route-chunks.d.ts +13 -0
- package/dist/route-chunks.js +32 -0
- package/dist/route-lookup.d.ts +34 -0
- package/dist/route-lookup.js +207 -0
- package/dist/routes-ahead-shared.d.ts +17 -0
- package/dist/routes-ahead-shared.js +9 -0
- package/dist/routes-ahead.d.ts +10 -0
- package/dist/routes-ahead.js +54 -0
- package/dist/rsc.d.ts +19 -0
- package/dist/rsc.js +171 -0
- package/dist/server-action.d.ts +9 -0
- package/dist/server-action.js +15 -0
- package/dist/server-code.d.ts +176 -0
- package/dist/server-code.js +357 -0
- package/dist/server-in-front.d.ts +37 -0
- package/dist/server-in-front.js +90 -0
- package/dist/server-layers.d.ts +22 -0
- package/dist/server-layers.js +33 -0
- package/dist/setup-browser.d.ts +1 -0
- package/dist/setup-browser.js +8 -0
- package/dist/setup-node.d.ts +1 -0
- package/dist/setup-node.js +6 -0
- package/dist/setup.d.ts +8 -0
- package/dist/setup.js +62 -0
- package/dist/speed-features.d.ts +13 -0
- package/dist/speed-features.js +95 -0
- package/dist/ssr.d.ts +70 -0
- package/dist/ssr.js +480 -0
- package/dist/static-build.d.ts +36 -0
- package/dist/static-build.js +92 -0
- package/dist/storage.d.ts +31 -0
- package/dist/storage.js +94 -0
- package/dist/styles-shared.d.ts +137 -0
- package/dist/styles-shared.js +124 -0
- package/dist/styles.d.ts +102 -0
- package/dist/styles.js +730 -0
- package/dist/stylesheet-versions.d.ts +17 -0
- package/dist/stylesheet-versions.js +43 -0
- package/dist/tester.html +10 -0
- package/dist/use-cache.d.ts +15 -0
- package/dist/use-cache.js +93 -0
- package/dist/vitest-version.d.ts +6 -0
- package/dist/vitest-version.js +12 -0
- package/package.json +125 -3
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PrerenderVerdict } from "./registry.js";
|
|
2
|
+
import { buildAppStaticPaths } from "./compat/rsc/prerender.js";
|
|
3
|
+
|
|
4
|
+
//#region src/prerender-verdict.d.ts
|
|
5
|
+
type RouteEntry = Parameters<typeof buildAppStaticPaths>[0]["ComponentMod"];
|
|
6
|
+
declare function prerenderVerdictOf(entry: RouteEntry, pathname: string, kind: "page" | "route"): Promise<PrerenderVerdict | undefined>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { prerenderVerdictOf };
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { registry } from "./registry.js";
|
|
2
|
+
import { buildAppStaticPaths, collectRootParamKeys, collectSegments, fallbackModeToFallbackField, isEdgeRuntime, isMetadataRoute, isStaticGenEnabled, isStaticMetadataFile, parseNormalizedAppRoute } from "./compat/rsc/prerender.js";
|
|
3
|
+
import { nextConfig, routing } from "virtual:vitest-plugin-rsc/next-manifest";
|
|
4
|
+
//#region src/prerender-verdict.ts
|
|
5
|
+
const hasNonStaticMethods = (handlers) => Boolean(handlers.POST || handlers.PUT || handlers.DELETE || handlers.PATCH || handlers.OPTIONS);
|
|
6
|
+
async function prerenderVerdictOf(entry, pathname, kind) {
|
|
7
|
+
const { routeModule } = entry;
|
|
8
|
+
const cacheComponents = Boolean(nextConfig.cacheComponents);
|
|
9
|
+
if (kind === "page" && cacheComponents) return void 0;
|
|
10
|
+
if (kind === "route") {
|
|
11
|
+
const routeHandler = routeModule;
|
|
12
|
+
await routeHandler.ensureUserland();
|
|
13
|
+
const userland = routeHandler.userland;
|
|
14
|
+
if (!isStaticGenEnabled(userland) && !isMetadataRoute(`${pathname}/route`) && !cacheComponents) return;
|
|
15
|
+
if (typeof userland.GET !== "function") return void 0;
|
|
16
|
+
if (hasNonStaticMethods(userland)) return void 0;
|
|
17
|
+
}
|
|
18
|
+
const { segments, segmentTree } = await collectSegments(routeModule, {
|
|
19
|
+
cacheComponents,
|
|
20
|
+
partialPrefetching: Boolean(nextConfig.partialPrefetching)
|
|
21
|
+
});
|
|
22
|
+
const configured = (option) => segments.findLast((segment) => segment.config?.[option] !== void 0)?.config?.[option];
|
|
23
|
+
if (isEdgeRuntime(configured("runtime"))) return void 0;
|
|
24
|
+
const route = parseNormalizedAppRoute(pathname);
|
|
25
|
+
if (!(route.dynamicSegments.length > 0)) return { pathnames: [pathname] };
|
|
26
|
+
if (kind === "route" && isStaticMetadataFile(pathname)) return void 0;
|
|
27
|
+
const serverCache = globalThis.__incrementalCache;
|
|
28
|
+
let prerenderedRoutes;
|
|
29
|
+
let fallbackMode;
|
|
30
|
+
try {
|
|
31
|
+
({prerenderedRoutes, fallbackMode} = await buildAppStaticPaths({
|
|
32
|
+
dir: "/",
|
|
33
|
+
distDir: registry.buildDir(),
|
|
34
|
+
page: pathname,
|
|
35
|
+
route,
|
|
36
|
+
cacheComponents,
|
|
37
|
+
authInterrupts: Boolean(nextConfig.experimental.authInterrupts),
|
|
38
|
+
useCacheTimeout: nextConfig.experimental.useCacheTimeout,
|
|
39
|
+
durableUseCacheEntries: Boolean(nextConfig.experimental.durableUseCacheEntries),
|
|
40
|
+
staticPageGenerationTimeout: nextConfig.staticPageGenerationTimeout,
|
|
41
|
+
segments,
|
|
42
|
+
segmentTree,
|
|
43
|
+
requestHeaders: {},
|
|
44
|
+
isrFlushToDisk: true,
|
|
45
|
+
cacheMaxMemorySize: 0,
|
|
46
|
+
fetchCacheKeyPrefix: `${nextConfig.experimental.fetchCacheKeyPrefix ?? ""}${registry.cacheGeneration()}`,
|
|
47
|
+
cacheLifeProfiles: nextConfig.cacheLife,
|
|
48
|
+
ComponentMod: entry,
|
|
49
|
+
nextConfigOutput: nextConfig.output,
|
|
50
|
+
isRoutePPREnabled: false,
|
|
51
|
+
isEnsureStaticPage: false,
|
|
52
|
+
buildId: routing.buildId,
|
|
53
|
+
deploymentId: nextConfig.deploymentId ?? "",
|
|
54
|
+
rootParamKeys: collectRootParamKeys(routeModule)
|
|
55
|
+
}));
|
|
56
|
+
} finally {
|
|
57
|
+
globalThis.__incrementalCache = serverCache;
|
|
58
|
+
}
|
|
59
|
+
const dynamic = configured("dynamic");
|
|
60
|
+
if (!prerenderedRoutes && dynamic !== "error" && dynamic !== "force-static") return void 0;
|
|
61
|
+
return {
|
|
62
|
+
pathnames: (prerenderedRoutes ?? []).filter((route) => route.isPrerenderOutput !== false).map((route) => route.pathname).filter((path) => path !== pathname),
|
|
63
|
+
fallback: fallbackModeToFallbackField(fallbackMode ?? "NOT_FOUND", pathname)
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
//#endregion
|
|
67
|
+
export { prerenderVerdictOf };
|
|
@@ -0,0 +1,546 @@
|
|
|
1
|
+
import { PageEnv } from "./env.js";
|
|
2
|
+
import { Loader } from "./loaders.js";
|
|
3
|
+
import { AppLoaderContext } from "./entries.js";
|
|
4
|
+
import * as _$next_dist_server_lib_incremental_cache_index0 from "next/dist/server/lib/incremental-cache/index.js";
|
|
5
|
+
import * as _$next_dist_shared_lib_router_utils_route_regex0 from "next/dist/shared/lib/router/utils/route-regex.js";
|
|
6
|
+
import * as _$next from "next";
|
|
7
|
+
import * as _$next_dist_build_adapter_build_complete0 from "next/dist/build/adapter/build-complete.js";
|
|
8
|
+
import * as _$next_dist_build_analysis_get_page_static_info0 from "next/dist/build/analysis/get-page-static-info.js";
|
|
9
|
+
import * as _$next_dist_lib_load_custom_routes0 from "next/dist/lib/load-custom-routes.js";
|
|
10
|
+
import * as _$next_dist_server_config_shared0 from "next/dist/server/config-shared.js";
|
|
11
|
+
import * as _$next_dist_shared_lib_image_config0 from "next/dist/shared/lib/image-config.js";
|
|
12
|
+
import * as _$next_dist_compiled_webpack_webpack0 from "next/dist/compiled/webpack/webpack.js";
|
|
13
|
+
import * as _$next_dist_build_webpack_plugins_subresource_integrity_plugin0 from "next/dist/build/webpack/plugins/subresource-integrity-plugin.js";
|
|
14
|
+
import * as _$next_dist_shared_lib_utils0 from "next/dist/shared/lib/utils.js";
|
|
15
|
+
import * as _$next_dist_cli_next_test0 from "next/dist/cli/next-test.js";
|
|
16
|
+
import * as _$next_dist_build_swc_generated_native0 from "next/dist/build/swc/generated-native";
|
|
17
|
+
import * as _$next_dist_build_route_discovery0 from "next/dist/build/route-discovery.js";
|
|
18
|
+
import * as _$next_dist_build_normalize_catchall_routes0 from "next/dist/build/normalize-catchall-routes.js";
|
|
19
|
+
import * as _$next_dist_shared_lib_router_utils_app_paths0 from "next/dist/shared/lib/router/utils/app-paths.js";
|
|
20
|
+
import * as _$next_dist_lib_is_app_route_route0 from "next/dist/lib/is-app-route-route.js";
|
|
21
|
+
import * as _$next_dist_lib_is_app_page_route0 from "next/dist/lib/is-app-page-route.js";
|
|
22
|
+
import * as _$next_dist_shared_lib_router_utils_interception_routes0 from "next/dist/shared/lib/router/utils/interception-routes.js";
|
|
23
|
+
import * as _$next_dist_shared_lib_errors_missing_canonical_interception_routes_error0 from "next/dist/shared/lib/errors/missing-canonical-interception-routes-error.js";
|
|
24
|
+
import * as _$next_dist_shared_lib_errors_incompatible_parallel_route_slots_error0 from "next/dist/shared/lib/errors/incompatible-parallel-route-slots-error.js";
|
|
25
|
+
import * as _$next_dist_shared_lib_errors_unmatched_app_pages_error0 from "next/dist/shared/lib/errors/unmatched-app-pages-error.js";
|
|
26
|
+
import * as _$next_dist_build_define_env0 from "next/dist/build/define-env.js";
|
|
27
|
+
import * as _$next_dist_lib_static_env0 from "next/dist/lib/static-env.js";
|
|
28
|
+
import * as _$next_dist_build_create_compiler_aliases0 from "next/dist/build/create-compiler-aliases.js";
|
|
29
|
+
import * as _$next_dist_lib_needs_experimental_react0 from "next/dist/lib/needs-experimental-react.js";
|
|
30
|
+
import * as _$next_dist_build_load_entrypoint0 from "next/dist/build/load-entrypoint.js";
|
|
31
|
+
import * as _$next_dist_build_swc_index0 from "next/dist/build/swc/index.js";
|
|
32
|
+
import * as _$next_dist_build_swc_options0 from "next/dist/build/swc/options.js";
|
|
33
|
+
import * as _$next_dist_build_load_jsconfig0 from "next/dist/build/load-jsconfig.js";
|
|
34
|
+
import * as _$next_dist_build_webpack_config_blocks_css_loaders_next_font0 from "next/dist/build/webpack/config/blocks/css/loaders/next-font.js";
|
|
35
|
+
import * as _$next_dist_build_webpack_config_blocks_css_plugins0 from "next/dist/build/webpack/config/blocks/css/plugins.js";
|
|
36
|
+
import * as _$next_dist_build_get_supported_browsers0 from "next/dist/build/get-supported-browsers.js";
|
|
37
|
+
import * as _$next_dist_build_webpack_config_blocks_css_loaders_modules0 from "next/dist/build/webpack/config/blocks/css/loaders/modules.js";
|
|
38
|
+
import * as _$next_dist_lib_find_config0 from "next/dist/lib/find-config.js";
|
|
39
|
+
import * as _$next_dist_server_image_optimizer0 from "next/dist/server/image-optimizer.js";
|
|
40
|
+
import * as _$next_dist_lib_generate_interception_routes_rewrites0 from "next/dist/lib/generate-interception-routes-rewrites.js";
|
|
41
|
+
import * as _$next_dist_build_generate_routes_manifest0 from "next/dist/build/generate-routes-manifest.js";
|
|
42
|
+
import * as _$next_dist_lib_bundler0 from "next/dist/lib/bundler.js";
|
|
43
|
+
import * as _$next_dist_lib_get_files_in_dir0 from "next/dist/lib/get-files-in-dir.js";
|
|
44
|
+
import * as _$next_dist_build_get_static_info_including_layouts0 from "next/dist/build/get-static-info-including-layouts.js";
|
|
45
|
+
import * as _$next_dist_build_entries0 from "next/dist/build/entries.js";
|
|
46
|
+
|
|
47
|
+
//#region src/project/context.d.ts
|
|
48
|
+
declare function inDirectory<T>(directory: string, load: () => Promise<T>): Promise<T>;
|
|
49
|
+
/** The file of a module of Next by its path, which may leave out `.js` or `/index.js`. */
|
|
50
|
+
declare function moduleFileAt(base: string): string | undefined;
|
|
51
|
+
/** The project and its `next`, as `openNextProject()` loads them. */
|
|
52
|
+
type NextContext = Awaited<ReturnType<typeof openNextProject>>;
|
|
53
|
+
declare function openNextProject(root: string, projectRequire: NodeJS.Require, options: {
|
|
54
|
+
static?: boolean; /** The file of env-worker.ts. */
|
|
55
|
+
envWorker: string;
|
|
56
|
+
}): Promise<{
|
|
57
|
+
root: string; /** What the page's `process.env` gets, see env.ts. */
|
|
58
|
+
env: PageEnv; /** The env again, as the env files have it now. */
|
|
59
|
+
loadEnv: () => Promise<PageEnv>; /** Finds `next`, and what the project has installed next to it. Not the global one. */
|
|
60
|
+
projectRequire: NodeJS.Require;
|
|
61
|
+
nextDir: string;
|
|
62
|
+
version: string;
|
|
63
|
+
fail: (what: string, cause?: unknown) => never;
|
|
64
|
+
replace: (code: string, piece: string | RegExp, replacement: string, where: string) => string;
|
|
65
|
+
config: {
|
|
66
|
+
images: Partial<_$next_dist_shared_lib_image_config0.ImageConfigComplete> & Required<_$next_dist_shared_lib_image_config0.ImageConfigComplete>;
|
|
67
|
+
i18n: null;
|
|
68
|
+
experimental: {
|
|
69
|
+
cachedNavigations: boolean;
|
|
70
|
+
agentUpgrade?: "security" | "latest" | "experimental-future" | false;
|
|
71
|
+
agentFeedback?: boolean;
|
|
72
|
+
turbopackAdditionalRoots?: Record<string, {
|
|
73
|
+
path: string;
|
|
74
|
+
ignoreIfMissing?: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
outputHashSalt?: string;
|
|
77
|
+
coldCacheBadge?: boolean;
|
|
78
|
+
collapseAdapterRoutes?: boolean;
|
|
79
|
+
useSkewCookie?: boolean;
|
|
80
|
+
cacheHandlers?: _$next.NextConfig["cacheHandlers"];
|
|
81
|
+
multiZoneDraftMode?: boolean;
|
|
82
|
+
appNavFailHandling?: boolean;
|
|
83
|
+
parallelRouteMetadata?: boolean;
|
|
84
|
+
prerenderEarlyExit?: boolean;
|
|
85
|
+
linkNoTouchStart?: boolean;
|
|
86
|
+
caseSensitiveRoutes?: boolean;
|
|
87
|
+
clientParamParsingOrigins?: string[];
|
|
88
|
+
dynamicOnHover?: boolean;
|
|
89
|
+
reactBrowserBailout?: boolean;
|
|
90
|
+
useOffline?: boolean;
|
|
91
|
+
optimisticRouting?: boolean;
|
|
92
|
+
concurrentRouterQueue?: boolean;
|
|
93
|
+
instrumentationClientRouterTransitionEvents?: boolean;
|
|
94
|
+
varyParams?: boolean;
|
|
95
|
+
prefetchInlining?: ((boolean | {
|
|
96
|
+
maxSize?: number;
|
|
97
|
+
maxBundleSize?: number;
|
|
98
|
+
}) & _$next_dist_server_config_shared0.PrefetchInliningConfig) | undefined;
|
|
99
|
+
preloadEntriesOnStart?: boolean;
|
|
100
|
+
clientRouterFilter?: boolean;
|
|
101
|
+
clientRouterFilterRedirects?: boolean;
|
|
102
|
+
staleTimes?: {
|
|
103
|
+
dynamic?: number;
|
|
104
|
+
static?: number;
|
|
105
|
+
};
|
|
106
|
+
cacheLife?: _$next.NextConfig["cacheLife"];
|
|
107
|
+
clientRouterFilterAllowedRate?: number;
|
|
108
|
+
externalMiddlewareRewritesResolve?: boolean;
|
|
109
|
+
externalProxyRewritesResolve?: boolean;
|
|
110
|
+
exposeTestingApiInProductionBuild?: boolean;
|
|
111
|
+
requestInsights?: boolean;
|
|
112
|
+
extensionAlias?: Record<string, any>;
|
|
113
|
+
allowedRevalidateHeaderKeys?: string[];
|
|
114
|
+
fetchCacheKeyPrefix?: string;
|
|
115
|
+
imgOptConcurrency?: number | null;
|
|
116
|
+
imgOptOperationCache?: boolean | null;
|
|
117
|
+
imgOptTimeoutInSeconds?: number;
|
|
118
|
+
imgOptMaxInputPixels?: number;
|
|
119
|
+
imgOptSequentialRead?: boolean | null;
|
|
120
|
+
imgOptMozjpeg?: boolean;
|
|
121
|
+
optimisticClientCache?: boolean;
|
|
122
|
+
expireTime?: number;
|
|
123
|
+
middlewarePrefetch?: "strict" | "flexible";
|
|
124
|
+
proxyPrefetch?: "strict" | "flexible";
|
|
125
|
+
manualClientBasePath?: boolean;
|
|
126
|
+
cssChunking?: _$next_dist_server_config_shared0.CssChunkingConfig;
|
|
127
|
+
devMemoryThresholdRestart?: boolean;
|
|
128
|
+
disablePostcssPresetEnv?: boolean;
|
|
129
|
+
cpus?: number;
|
|
130
|
+
memoryBasedWorkersCount?: boolean;
|
|
131
|
+
proxyTimeout?: number;
|
|
132
|
+
isrFlushToDisk?: boolean;
|
|
133
|
+
workerThreads?: boolean;
|
|
134
|
+
optimizeCss?: boolean | Record<string, unknown>;
|
|
135
|
+
nextScriptWorkers?: boolean;
|
|
136
|
+
scrollRestoration?: boolean;
|
|
137
|
+
externalDir?: boolean;
|
|
138
|
+
disableOptimizedLoading?: boolean;
|
|
139
|
+
gzipSize?: boolean;
|
|
140
|
+
craCompat?: boolean;
|
|
141
|
+
esmExternals?: boolean | "loose";
|
|
142
|
+
fullySpecified?: boolean;
|
|
143
|
+
urlImports?: NonNullable<_$next_dist_compiled_webpack_webpack0.webpack.Configuration["experiments"]>["buildHttp"];
|
|
144
|
+
swcTraceProfiling?: boolean;
|
|
145
|
+
forceSwcTransforms?: boolean;
|
|
146
|
+
swcPlugins?: Array<[string, Record<string, unknown>]>;
|
|
147
|
+
swcEnvOptions?: {
|
|
148
|
+
mode?: "usage" | "entry";
|
|
149
|
+
coreJs?: string;
|
|
150
|
+
skip?: string[];
|
|
151
|
+
include?: string[];
|
|
152
|
+
exclude?: string[];
|
|
153
|
+
shippedProposals?: boolean;
|
|
154
|
+
forceAllTransforms?: boolean;
|
|
155
|
+
debug?: boolean;
|
|
156
|
+
loose?: boolean;
|
|
157
|
+
};
|
|
158
|
+
largePageDataBytes?: number;
|
|
159
|
+
fallbackNodePolyfills?: false;
|
|
160
|
+
sri?: {
|
|
161
|
+
algorithm?: _$next_dist_build_webpack_plugins_subresource_integrity_plugin0.SubresourceIntegrityAlgorithm;
|
|
162
|
+
};
|
|
163
|
+
webVitalsAttribution?: Array<typeof _$next_dist_shared_lib_utils0.WEB_VITALS[number]>;
|
|
164
|
+
optimizePackageImports?: string[];
|
|
165
|
+
optimizeServerReact?: boolean;
|
|
166
|
+
strictRouteTypes?: boolean;
|
|
167
|
+
useTypeScriptCli?: boolean;
|
|
168
|
+
transitionIndicator?: boolean;
|
|
169
|
+
gestureTransition?: boolean;
|
|
170
|
+
turbopackMemoryEviction?: false | "full" | "auto";
|
|
171
|
+
turbopackGc?: boolean | {
|
|
172
|
+
minProgressMs?: number;
|
|
173
|
+
rootTtlMs?: number;
|
|
174
|
+
};
|
|
175
|
+
turbopackPluginRuntimeStrategy?: "workerThreads" | "childProcesses" | "forceWorkerThreads";
|
|
176
|
+
turbopackMinify?: boolean | {
|
|
177
|
+
server?: boolean;
|
|
178
|
+
client?: boolean;
|
|
179
|
+
edge?: boolean;
|
|
180
|
+
};
|
|
181
|
+
turbopackImportTypeBytes?: boolean;
|
|
182
|
+
turbopackScopeHoisting?: boolean;
|
|
183
|
+
turbopackSharedRuntime?: boolean;
|
|
184
|
+
turbopackChunking?: {
|
|
185
|
+
clusters?: RegExp[][];
|
|
186
|
+
firstPageLoadPriority?: number;
|
|
187
|
+
priorityRoutes?: RegExp[];
|
|
188
|
+
priorityBoost?: number;
|
|
189
|
+
requestCost?: number;
|
|
190
|
+
minChunkSize?: number;
|
|
191
|
+
maxChunkCountPerGroup?: number;
|
|
192
|
+
maxMergeChunkSize?: number;
|
|
193
|
+
generateComponentChunks?: boolean;
|
|
194
|
+
minComponentChunkSize?: number;
|
|
195
|
+
};
|
|
196
|
+
turbopackWorkerAssetPrefix?: string;
|
|
197
|
+
turbopackClientSideNestedAsyncChunking?: boolean;
|
|
198
|
+
turbopackServerSideNestedAsyncChunking?: boolean;
|
|
199
|
+
turbopackLazyDynamicImports?: boolean;
|
|
200
|
+
turbopackLazyDynamicImportsSSR?: boolean;
|
|
201
|
+
turbopackFileSystemCacheForDev?: boolean;
|
|
202
|
+
turbopackFileSystemCacheForBuild?: boolean;
|
|
203
|
+
turbopackSeedCacheFromWorktree?: boolean;
|
|
204
|
+
turbopackStaleOutputMaxAge?: number;
|
|
205
|
+
turbopackSourceMaps?: boolean;
|
|
206
|
+
turbopackInputSourceMaps?: boolean;
|
|
207
|
+
turbopackModuleFragments?: boolean;
|
|
208
|
+
turbopackRemoveUnusedImports?: boolean;
|
|
209
|
+
turbopackRemoveUnusedExports?: boolean;
|
|
210
|
+
turbopackInferModuleSideEffects?: boolean;
|
|
211
|
+
turbopackCjsTreeShaking?: boolean;
|
|
212
|
+
turbopackMangleExportNames?: boolean;
|
|
213
|
+
turbopackMangleViaMaterializedNamespaceObject?: boolean;
|
|
214
|
+
turbopackCjsScopeHoisting?: boolean;
|
|
215
|
+
turbopackCrossModuleConstants?: boolean;
|
|
216
|
+
turbopackUseBuiltinBabel?: boolean;
|
|
217
|
+
turbopackUseBuiltinSass?: boolean;
|
|
218
|
+
turbopackLocalPostcssConfig?: boolean;
|
|
219
|
+
turbopackModuleIds?: "named" | "deterministic";
|
|
220
|
+
turbopackServerFastRefresh?: boolean;
|
|
221
|
+
mdxRs?: boolean | {
|
|
222
|
+
development?: boolean;
|
|
223
|
+
jsx?: boolean;
|
|
224
|
+
jsxRuntime?: string;
|
|
225
|
+
jsxImportSource?: string;
|
|
226
|
+
providerImportSource?: string;
|
|
227
|
+
mdxType?: "gfm" | "commonmark";
|
|
228
|
+
};
|
|
229
|
+
typedRoutes?: boolean;
|
|
230
|
+
typedEnv?: boolean;
|
|
231
|
+
parallelServerCompiles?: boolean;
|
|
232
|
+
parallelServerBuildTraces?: boolean;
|
|
233
|
+
webpackBuildWorker?: boolean;
|
|
234
|
+
webpackMemoryOptimizations?: boolean;
|
|
235
|
+
clientTraceMetadata?: string[];
|
|
236
|
+
ppr?: boolean | "incremental";
|
|
237
|
+
taint?: boolean;
|
|
238
|
+
blockingSSR?: boolean;
|
|
239
|
+
removeUncaughtErrorAndRejectionListeners?: boolean;
|
|
240
|
+
validateRSCRequestHeaders?: boolean;
|
|
241
|
+
serverActions?: {
|
|
242
|
+
bodySizeLimit?: _$next.SizeLimit;
|
|
243
|
+
allowedOrigins?: string[];
|
|
244
|
+
};
|
|
245
|
+
maxPostponedStateSize?: _$next.SizeLimit;
|
|
246
|
+
disableResumeDataCacheCompression?: boolean;
|
|
247
|
+
serverMinification?: boolean;
|
|
248
|
+
serverSourceMaps?: boolean;
|
|
249
|
+
useWasmBinary?: boolean;
|
|
250
|
+
useLightningcss?: boolean;
|
|
251
|
+
lightningCssFeatures?: _$next_dist_server_config_shared0.LightningCssFeatures;
|
|
252
|
+
testProxy?: boolean;
|
|
253
|
+
defaultTestRunner?: _$next_dist_cli_next_test0.SupportedTestRunners;
|
|
254
|
+
allowDevelopmentBuild?: true;
|
|
255
|
+
bundlePagesExternals?: boolean;
|
|
256
|
+
serverComponentsExternalPackages?: string[];
|
|
257
|
+
reactDebugChannel?: boolean;
|
|
258
|
+
cacheComponents?: boolean;
|
|
259
|
+
instantInsights: {
|
|
260
|
+
validationLevel?: _$next_dist_server_config_shared0.ValidationLevel;
|
|
261
|
+
} & {
|
|
262
|
+
validationLevel: _$next_dist_server_config_shared0.ValidationLevel;
|
|
263
|
+
};
|
|
264
|
+
devValidationWorker?: boolean;
|
|
265
|
+
staticGenerationRetryCount?: number;
|
|
266
|
+
staticGenerationMaxConcurrency?: number;
|
|
267
|
+
staticGenerationMinPagesPerWorker?: number;
|
|
268
|
+
serverComponentsHmrCache?: boolean;
|
|
269
|
+
serverComponentsHmrCancellation?: boolean;
|
|
270
|
+
inlineCss?: boolean;
|
|
271
|
+
authInterrupts?: boolean;
|
|
272
|
+
useCacheTimeout: number;
|
|
273
|
+
useCache?: boolean;
|
|
274
|
+
durableUseCacheEntries?: boolean;
|
|
275
|
+
useCacheStaticRootParamTracking?: boolean;
|
|
276
|
+
slowModuleDetection?: {
|
|
277
|
+
buildTimeThresholdMs: number;
|
|
278
|
+
};
|
|
279
|
+
globalNotFound?: boolean;
|
|
280
|
+
explicitParallelRouteChildren?: boolean;
|
|
281
|
+
turbopackRustReactCompiler?: boolean;
|
|
282
|
+
browserDebugInfoInTerminal?: boolean | "error" | "warn" | "verbose" | {
|
|
283
|
+
level?: "error" | "warn" | "verbose";
|
|
284
|
+
depthLimit?: number;
|
|
285
|
+
edgeLimit?: number;
|
|
286
|
+
showSourceLocation?: boolean;
|
|
287
|
+
};
|
|
288
|
+
middlewareClientMaxBodySize?: _$next.SizeLimit;
|
|
289
|
+
proxyClientMaxBodySize?: _$next.SizeLimit;
|
|
290
|
+
mcpServer?: boolean;
|
|
291
|
+
exposeRuntimeErrorsToHMR?: boolean;
|
|
292
|
+
lockDistDir?: boolean;
|
|
293
|
+
hideLogsAfterAbort?: boolean;
|
|
294
|
+
runtimeServerDeploymentId?: boolean;
|
|
295
|
+
supportsImmutableAssets?: boolean;
|
|
296
|
+
deferredEntries?: string[];
|
|
297
|
+
onBeforeDeferredEntries?: () => Promise<void>;
|
|
298
|
+
reportSystemEnvInlining?: "error" | "warn";
|
|
299
|
+
turbopackMemoryEvictionMode: _$next_dist_build_swc_generated_native0.MemoryEvictionMode;
|
|
300
|
+
turbopackGcOptions: _$next_dist_build_swc_generated_native0.NapiTurbopackGcOptions | undefined;
|
|
301
|
+
};
|
|
302
|
+
env: Record<string, string | undefined>;
|
|
303
|
+
exportPathMap: (defaultMap: _$next_dist_server_config_shared0.ExportPathMap, ctx: {
|
|
304
|
+
dev: boolean;
|
|
305
|
+
dir: string;
|
|
306
|
+
outDir: string | null;
|
|
307
|
+
distDir: string;
|
|
308
|
+
buildId: string;
|
|
309
|
+
}) => Promise<_$next_dist_server_config_shared0.ExportPathMap> | _$next_dist_server_config_shared0.ExportPathMap;
|
|
310
|
+
typescript: _$next_dist_server_config_shared0.TypeScriptConfig;
|
|
311
|
+
typedRoutes: boolean;
|
|
312
|
+
headers: () => Promise<_$next_dist_lib_load_custom_routes0.Header[]> | _$next_dist_lib_load_custom_routes0.Header[];
|
|
313
|
+
rewrites: () => Promise<_$next_dist_lib_load_custom_routes0.Rewrite[] | {
|
|
314
|
+
beforeFiles?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
315
|
+
afterFiles?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
316
|
+
fallback?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
317
|
+
}> | _$next_dist_lib_load_custom_routes0.Rewrite[] | {
|
|
318
|
+
beforeFiles?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
319
|
+
afterFiles?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
320
|
+
fallback?: _$next_dist_lib_load_custom_routes0.Rewrite[];
|
|
321
|
+
};
|
|
322
|
+
redirects: () => Promise<_$next_dist_lib_load_custom_routes0.Redirect[]> | _$next_dist_lib_load_custom_routes0.Redirect[];
|
|
323
|
+
excludeDefaultMomentLocales: boolean;
|
|
324
|
+
webpack: _$next_dist_server_config_shared0.NextJsWebpackConfig | null;
|
|
325
|
+
trailingSlash: boolean;
|
|
326
|
+
distDir: string;
|
|
327
|
+
cleanDistDir: boolean;
|
|
328
|
+
assetPrefix: string;
|
|
329
|
+
cacheHandler: string;
|
|
330
|
+
cacheHandlers: {
|
|
331
|
+
default?: string;
|
|
332
|
+
remote?: string;
|
|
333
|
+
static?: string;
|
|
334
|
+
[handlerName: string]: string | undefined;
|
|
335
|
+
};
|
|
336
|
+
cacheMaxMemorySize: number;
|
|
337
|
+
useFileSystemPublicRoutes: boolean;
|
|
338
|
+
generateEtags: boolean;
|
|
339
|
+
pageExtensions: string[];
|
|
340
|
+
instrumentationClientInject: string[];
|
|
341
|
+
compress: boolean;
|
|
342
|
+
poweredByHeader: boolean;
|
|
343
|
+
devIndicators: false | {
|
|
344
|
+
position?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
345
|
+
};
|
|
346
|
+
onDemandEntries: {
|
|
347
|
+
maxInactiveAge?: number;
|
|
348
|
+
pagesBufferLength?: number;
|
|
349
|
+
};
|
|
350
|
+
deploymentId: string;
|
|
351
|
+
supportsImmutableAssets: boolean;
|
|
352
|
+
basePath: string;
|
|
353
|
+
sassOptions: {
|
|
354
|
+
implementation?: string;
|
|
355
|
+
[key: string]: any;
|
|
356
|
+
};
|
|
357
|
+
productionBrowserSourceMaps: boolean;
|
|
358
|
+
reactCompiler: boolean | _$next_dist_server_config_shared0.ReactCompilerOptions;
|
|
359
|
+
reactProductionProfiling: boolean;
|
|
360
|
+
reactStrictMode: boolean | null;
|
|
361
|
+
reactMaxHeadersLength: number;
|
|
362
|
+
httpAgentOptions: {
|
|
363
|
+
keepAlive?: boolean;
|
|
364
|
+
};
|
|
365
|
+
staticPageGenerationTimeout: number;
|
|
366
|
+
crossOrigin: "anonymous" | "use-credentials";
|
|
367
|
+
compiler: {
|
|
368
|
+
reactRemoveProperties?: boolean | {
|
|
369
|
+
properties?: string[];
|
|
370
|
+
};
|
|
371
|
+
relay?: {
|
|
372
|
+
src: string;
|
|
373
|
+
artifactDirectory?: string;
|
|
374
|
+
language?: "typescript" | "javascript" | "flow";
|
|
375
|
+
eagerEsModules?: boolean;
|
|
376
|
+
};
|
|
377
|
+
removeConsole?: boolean | {
|
|
378
|
+
exclude?: string[];
|
|
379
|
+
};
|
|
380
|
+
styledComponents?: boolean | _$next_dist_server_config_shared0.StyledComponentsConfig;
|
|
381
|
+
emotion?: boolean | _$next_dist_server_config_shared0.EmotionConfig;
|
|
382
|
+
styledJsx?: boolean | {
|
|
383
|
+
useLightningcss?: boolean;
|
|
384
|
+
};
|
|
385
|
+
define?: Record<string, string | number | boolean>;
|
|
386
|
+
defineServer?: Record<string, string | number | boolean>;
|
|
387
|
+
runAfterProductionCompile?: (metadata: {
|
|
388
|
+
projectDir: string;
|
|
389
|
+
distDir: string;
|
|
390
|
+
}) => Promise<void>;
|
|
391
|
+
};
|
|
392
|
+
transpilePackages: string[];
|
|
393
|
+
turbopack: _$next_dist_server_config_shared0.TurbopackOptions;
|
|
394
|
+
skipMiddlewareUrlNormalize: boolean;
|
|
395
|
+
skipProxyUrlNormalize: boolean;
|
|
396
|
+
skipTrailingSlashRedirect: boolean;
|
|
397
|
+
logging: _$next_dist_server_config_shared0.LoggingConfig | false;
|
|
398
|
+
enablePrerenderSourceMaps: boolean;
|
|
399
|
+
cacheComponents: boolean;
|
|
400
|
+
partialPrefetching: boolean;
|
|
401
|
+
agentRules: boolean;
|
|
402
|
+
deprecated: _$next_dist_server_config_shared0.DeprecatedConfig;
|
|
403
|
+
bundlePagesRouterDependencies: boolean;
|
|
404
|
+
serverExternalPackages: string[];
|
|
405
|
+
outputFileTracingRoot: string;
|
|
406
|
+
outputFileTracingExcludes: Record<string, string[]>;
|
|
407
|
+
outputFileTracingIncludes: Record<string, string[]>;
|
|
408
|
+
outputHashSalt: string;
|
|
409
|
+
watchOptions: {
|
|
410
|
+
pollIntervalMs?: number;
|
|
411
|
+
};
|
|
412
|
+
htmlLimitedBots: RegExp & string;
|
|
413
|
+
generateBuildId?: (() => string | null | Promise<string | null>) | undefined;
|
|
414
|
+
cacheLife: {
|
|
415
|
+
[profile: string]: {
|
|
416
|
+
stale?: number;
|
|
417
|
+
revalidate?: number;
|
|
418
|
+
expire?: number;
|
|
419
|
+
};
|
|
420
|
+
} & _$next_dist_server_config_shared0.ResolvedCacheLifeProfiles;
|
|
421
|
+
expireTime?: number | undefined;
|
|
422
|
+
output?: "standalone" | "export" | undefined;
|
|
423
|
+
modularizeImports?: Record<string, {
|
|
424
|
+
transform: string | Record<string, string>;
|
|
425
|
+
preventFullImport?: boolean;
|
|
426
|
+
skipDefaultConversion?: boolean;
|
|
427
|
+
}> | undefined;
|
|
428
|
+
allowedDevOrigins?: string[] | undefined;
|
|
429
|
+
adapterPath?: string | undefined;
|
|
430
|
+
configFile: string | undefined;
|
|
431
|
+
configFileName: string;
|
|
432
|
+
distDirRoot: string;
|
|
433
|
+
repoRoot: string;
|
|
434
|
+
};
|
|
435
|
+
appDir: string;
|
|
436
|
+
pageExtensions: string[];
|
|
437
|
+
distDir: string;
|
|
438
|
+
buildId: string;
|
|
439
|
+
buildEnvironment: {
|
|
440
|
+
__NEXT_BUILD_ID: string;
|
|
441
|
+
__NEXT_PREVIEW_MODE_ID: string;
|
|
442
|
+
__NEXT_PREVIEW_MODE_SIGNING_KEY: string;
|
|
443
|
+
__NEXT_PREVIEW_MODE_ENCRYPTION_KEY: string;
|
|
444
|
+
};
|
|
445
|
+
previewProps: {
|
|
446
|
+
previewModeId: string;
|
|
447
|
+
previewModeSigningKey: string;
|
|
448
|
+
previewModeEncryptionKey: string;
|
|
449
|
+
}; /** The build code of the installed `next`, see compat/build.ts. */
|
|
450
|
+
next: {
|
|
451
|
+
COMPILER_NAMES: {
|
|
452
|
+
readonly client: "client";
|
|
453
|
+
readonly server: "server";
|
|
454
|
+
readonly edgeServer: "edge-server";
|
|
455
|
+
};
|
|
456
|
+
APP_DIR_ALIAS: string;
|
|
457
|
+
MIDDLEWARE_FILENAME: string;
|
|
458
|
+
PROXY_FILENAME: string;
|
|
459
|
+
WEBPACK_LAYERS: {
|
|
460
|
+
GROUP: {
|
|
461
|
+
builtinReact: ("rsc" | "action-browser")[];
|
|
462
|
+
serverOnly: ("middleware" | "rsc" | "action-browser" | "instrument")[];
|
|
463
|
+
neutralTarget: ("api-node" | "api-edge")[];
|
|
464
|
+
clientOnly: ("ssr" | "app-pages-browser")[];
|
|
465
|
+
bundled: ("shared" | "middleware" | "rsc" | "ssr" | "action-browser" | "instrument" | "app-pages-browser")[];
|
|
466
|
+
appPages: ("rsc" | "ssr" | "action-browser" | "app-pages-browser")[];
|
|
467
|
+
};
|
|
468
|
+
shared: "shared";
|
|
469
|
+
reactServerComponents: "rsc";
|
|
470
|
+
serverSideRendering: "ssr";
|
|
471
|
+
actionBrowser: "action-browser";
|
|
472
|
+
apiNode: "api-node";
|
|
473
|
+
apiEdge: "api-edge";
|
|
474
|
+
middleware: "middleware";
|
|
475
|
+
instrument: "instrument";
|
|
476
|
+
edgeAsset: "edge-asset";
|
|
477
|
+
appPagesBrowser: "app-pages-browser";
|
|
478
|
+
pagesDirBrowser: "pages-dir-browser";
|
|
479
|
+
pagesDirEdge: "pages-dir-edge";
|
|
480
|
+
pagesDirNode: "pages-dir-node";
|
|
481
|
+
};
|
|
482
|
+
WEBPACK_RESOURCE_QUERIES: {
|
|
483
|
+
edgeSSREntry: string;
|
|
484
|
+
metadata: string;
|
|
485
|
+
metadataRoute: string;
|
|
486
|
+
metadataImageMeta: string;
|
|
487
|
+
};
|
|
488
|
+
discoverRoutes: typeof _$next_dist_build_route_discovery0.discoverRoutes;
|
|
489
|
+
createPagesMapping: typeof _$next_dist_build_route_discovery0.createPagesMapping;
|
|
490
|
+
normalizeCatchAllRoutes: typeof _$next_dist_build_normalize_catchall_routes0.normalizeCatchAllRoutes;
|
|
491
|
+
normalizeAppPath: typeof _$next_dist_shared_lib_router_utils_app_paths0.normalizeAppPath;
|
|
492
|
+
compareAppPaths: typeof _$next_dist_shared_lib_router_utils_app_paths0.compareAppPaths;
|
|
493
|
+
selectAppPageEntry: typeof _$next_dist_shared_lib_router_utils_app_paths0.selectAppPageEntry;
|
|
494
|
+
isAppRouteRoute: typeof _$next_dist_lib_is_app_route_route0.isAppRouteRoute;
|
|
495
|
+
isAppPageRoute: typeof _$next_dist_lib_is_app_page_route0.isAppPageRoute;
|
|
496
|
+
findMissingCanonicalInterceptionRoutes: typeof _$next_dist_shared_lib_router_utils_interception_routes0.findMissingCanonicalInterceptionRoutes;
|
|
497
|
+
MissingCanonicalInterceptionRoutesError: typeof _$next_dist_shared_lib_errors_missing_canonical_interception_routes_error0.MissingCanonicalInterceptionRoutesError;
|
|
498
|
+
IncompatibleParallelRouteSlotsError: typeof _$next_dist_shared_lib_errors_incompatible_parallel_route_slots_error0.IncompatibleParallelRouteSlotsError;
|
|
499
|
+
UnmatchedAppPagesError: typeof _$next_dist_shared_lib_errors_unmatched_app_pages_error0.UnmatchedAppPagesError;
|
|
500
|
+
getDefineEnv: typeof _$next_dist_build_define_env0.getDefineEnv;
|
|
501
|
+
getNextPublicEnvironmentVariables: typeof _$next_dist_lib_static_env0.getNextPublicEnvironmentVariables;
|
|
502
|
+
getNextConfigEnv: typeof _$next_dist_lib_static_env0.getNextConfigEnv;
|
|
503
|
+
SUPPORTED_NATIVE_MODULES: readonly ["buffer", "events", "assert", "util", "async_hooks"];
|
|
504
|
+
compilerAliases: typeof _$next_dist_build_create_compiler_aliases0;
|
|
505
|
+
needsExperimentalReact: typeof _$next_dist_lib_needs_experimental_react0.needsExperimentalReact;
|
|
506
|
+
loadEntrypoint: typeof _$next_dist_build_load_entrypoint0.loadEntrypoint;
|
|
507
|
+
nextAppLoader: (this: AppLoaderContext) => Promise<string>;
|
|
508
|
+
IncrementalCache: typeof _$next_dist_server_lib_incremental_cache_index0.IncrementalCache;
|
|
509
|
+
swc: typeof _$next_dist_build_swc_index0;
|
|
510
|
+
getLoaderSWCOptions: typeof _$next_dist_build_swc_options0.getLoaderSWCOptions;
|
|
511
|
+
loadJsConfig: typeof _$next_dist_build_load_jsconfig0.default;
|
|
512
|
+
getRSCModuleInformation: typeof _$next_dist_build_analysis_get_page_static_info0.getRSCModuleInformation;
|
|
513
|
+
getAppPageStaticInfo: typeof _$next_dist_build_analysis_get_page_static_info0.getAppPageStaticInfo;
|
|
514
|
+
nextImageLoaderRegex: RegExp;
|
|
515
|
+
nextImageLoader: Loader;
|
|
516
|
+
getNextFontLoader: typeof _$next_dist_build_webpack_config_blocks_css_loaders_next_font0.getNextFontLoader;
|
|
517
|
+
getPostCssPlugins: typeof _$next_dist_build_webpack_config_blocks_css_plugins0.getPostCssPlugins;
|
|
518
|
+
getSupportedBrowsers: typeof _$next_dist_build_get_supported_browsers0.getSupportedBrowsers;
|
|
519
|
+
getCssModuleLoader: typeof _$next_dist_build_webpack_config_blocks_css_loaders_modules0.getCssModuleLoader;
|
|
520
|
+
localByDefault: (options: {
|
|
521
|
+
mode: string;
|
|
522
|
+
}) => never;
|
|
523
|
+
findConfig: typeof _$next_dist_lib_find_config0.findConfig;
|
|
524
|
+
nextFontLoader: Loader;
|
|
525
|
+
nextRootParamsLoader: Loader;
|
|
526
|
+
imageOptimizer: typeof _$next_dist_server_image_optimizer0;
|
|
527
|
+
loadCustomRoutes: typeof _$next_dist_lib_load_custom_routes0.default;
|
|
528
|
+
generateInterceptionRoutesRewrites: typeof _$next_dist_lib_generate_interception_routes_rewrites0.generateInterceptionRoutesRewrites;
|
|
529
|
+
NEXT_URL: "next-url";
|
|
530
|
+
generateRoutesManifest: typeof _$next_dist_build_generate_routes_manifest0.generateRoutesManifest;
|
|
531
|
+
handleBuildComplete: typeof _$next_dist_build_adapter_build_complete0.handleBuildComplete;
|
|
532
|
+
Bundler: typeof _$next_dist_lib_bundler0.Bundler;
|
|
533
|
+
getFilesInDir: typeof _$next_dist_lib_get_files_in_dir0.getFilesInDir;
|
|
534
|
+
rootPageType: never;
|
|
535
|
+
getStaticInfoIncludingLayouts: typeof _$next_dist_build_get_static_info_including_layouts0.getStaticInfoIncludingLayouts;
|
|
536
|
+
getEdgeServerEntry: typeof _$next_dist_build_entries0.getEdgeServerEntry;
|
|
537
|
+
getNamedMiddlewareRegex: typeof _$next_dist_shared_lib_router_utils_route_regex0.getNamedMiddlewareRegex;
|
|
538
|
+
nextMiddlewareLoader: Loader;
|
|
539
|
+
getContentType: (extWithoutDot: string) => string | null;
|
|
540
|
+
getExtension: (contentType: string) => string | null;
|
|
541
|
+
nextMetadataImageLoader: Loader;
|
|
542
|
+
nextMetadataRouteLoader: Loader;
|
|
543
|
+
};
|
|
544
|
+
}>;
|
|
545
|
+
//#endregion
|
|
546
|
+
export { NextContext, inDirectory, moduleFileAt, openNextProject };
|