Edit gitignore file

This commit is contained in:
ParkSuMin
2025-02-24 20:17:54 +03:00
parent 9b16274400
commit d7869378b8
349 changed files with 686 additions and 25860 deletions

View File

@@ -1,16 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../next/dist/bin/next" "$@"
else
exec node "$basedir/../next/dist/bin/next" "$@"
fi

1
frontend/style/node_modules/.bin/next generated vendored Symbolic link
View File

@@ -0,0 +1 @@
../next/dist/bin/next

View File

@@ -141,6 +141,36 @@
"version": "14.2.16",
"license": "MIT"
},
"node_modules/@next/swc-linux-x64-gnu": {
"version": "14.2.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-14.2.16.tgz",
"integrity": "sha512-9AGcX7VAkGbc5zTSa+bjQ757tkjr6C/pKS7OK8cX7QEiK6MHIIezBLcQ7gQqbDW2k5yaqba2aDtaBeyyZh1i6Q==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@next/swc-linux-x64-musl": {
"version": "14.2.16",
"resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-14.2.16.tgz",
"integrity": "sha512-Klgeagrdun4WWDaOizdbtIIm8khUDQJ/5cRzdpXHfkbY91LxBXeejL4kbZBrpR/nmgRrQvmz4l3OtttNVkz2Sg==",
"cpu": [
"x64"
],
"optional": true,
"os": [
"linux"
],
"engines": {
"node": ">= 10"
}
},
"node_modules/@next/swc-win32-x64-msvc": {
"version": "14.2.16",
"cpu": [
@@ -2375,6 +2405,8 @@
},
"node_modules/next": {
"version": "14.2.16",
"resolved": "https://registry.npmjs.org/next/-/next-14.2.16.tgz",
"integrity": "sha512-LcO7WnFu6lYSvCzZoo1dB+IO0xXz5uEv52HF1IUN0IqVTUIZGHuuR10I5efiLadGt+4oZqTcNZyVVEem/TM5nA==",
"license": "MIT",
"dependencies": {
"@next/env": "14.2.16",
@@ -2862,6 +2894,15 @@
"react-dom": ">=16.6.0"
}
},
"node_modules/react-wavify": {
"version": "1.11.1",
"resolved": "https://registry.npmjs.org/react-wavify/-/react-wavify-1.11.1.tgz",
"integrity": "sha512-9MWGSwdVBri2XsegpysGyxWAeqIKdikwj+6Dg2Ssi3xFoY5HUVDiPbEZ62ZP30DefKE5IzWKNdFjyIEJfVikhw==",
"license": "MIT",
"peerDependencies": {
"react": "^0.13.0 || ^0.14.0 || >=15"
}
},
"node_modules/read-cache": {
"version": "1.0.0",
"license": "MIT",

View File

@@ -1 +1 @@
export * from 'next/dist/shared/lib/amp'
export * from './dist/shared/lib/amp'

View File

@@ -1,3 +1,3 @@
import App from 'next/dist/pages/_app'
export * from 'next/dist/pages/_app'
import App from './dist/pages/_app'
export * from './dist/pages/_app'
export default App

View File

@@ -1,3 +1,3 @@
import getConfig from 'next/dist/shared/lib/runtime-config.external'
export * from 'next/dist/shared/lib/runtime-config.external'
import getConfig from './dist/shared/lib/runtime-config.external'
export * from './dist/shared/lib/runtime-config.external'
export default getConfig

0
frontend/style/node_modules/next/dist/bin/next generated vendored Normal file → Executable file
View File

0
frontend/style/node_modules/next/dist/bin/next.map generated vendored Normal file → Executable file
View File

View File

@@ -1,8 +1,8 @@
import type { NextConfig } from 'next/dist/server/config-shared';
import type { RouteHas } from 'next/dist/lib/load-custom-routes';
import type { NextConfig } from '../../server/config-shared';
import type { RouteHas } from '../../lib/load-custom-routes';
import type { ServerRuntime } from 'next/types';
import type { RSCMeta } from 'next/dist/build/webpack/loaders/get-module-build-info';
import { PAGE_TYPES } from 'next/dist/lib/page-types';
import type { RSCMeta } from '../webpack/loaders/get-module-build-info';
import { PAGE_TYPES } from '../../lib/page-types';
export interface MiddlewareConfigParsed extends Omit<MiddlewareConfig, 'matcher'> {
matchers?: MiddlewareMatcher[];
}

View File

@@ -1,9 +1,9 @@
import type { Revalidate } from 'next/dist/server/lib/revalidate';
import 'next/dist/lib/setup-exception-listeners';
import { RSC_PREFETCH_SUFFIX, RSC_SUFFIX } from 'next/dist/lib/constants';
import type { Header, Redirect, Rewrite, RouteHas } from 'next/dist/lib/load-custom-routes';
import type { __ApiPreviewProps } from 'next/dist/server/api-utils';
import { NEXT_ROUTER_PREFETCH_HEADER, RSC_HEADER, NEXT_DID_POSTPONE_HEADER } from 'next/dist/client/components/app-router-headers';
import type { Revalidate } from '../server/lib/revalidate';
import '../lib/setup-exception-listeners';
import { RSC_PREFETCH_SUFFIX, RSC_SUFFIX } from '../lib/constants';
import type { Header, Redirect, Rewrite, RouteHas } from '../lib/load-custom-routes';
import type { __ApiPreviewProps } from '../server/api-utils';
import { NEXT_ROUTER_PREFETCH_HEADER, RSC_HEADER, NEXT_DID_POSTPONE_HEADER } from '../client/components/app-router-headers';
interface ExperimentalBypassForInfo {
experimentalBypassFor?: RouteHas[];
}

View File

@@ -1,4 +1,4 @@
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { NextConfigComplete } from '../server/config-shared';
export type ResolvedBaseUrl = {
baseUrl: string;
isImplicit: boolean;

View File

@@ -1,6 +1,6 @@
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { DefineEnvPluginOptions } from 'next/dist/build/webpack/plugins/define-env-plugin';
import type { __ApiPreviewProps } from 'next/dist/server/api-utils';
import type { NextConfigComplete } from '../../server/config-shared';
import type { DefineEnvPluginOptions } from '../webpack/plugins/define-env-plugin';
import type { __ApiPreviewProps } from '../../server/api-utils';
/**
* Based on napi-rs's target triples, returns triples that have corresponding next-swc binaries.
*/

View File

@@ -1,5 +1,5 @@
import type { LoaderTree } from 'next/dist/server/lib/app-dir-module';
import { AppPageRouteModule } from 'next/dist/server/future/route-modules/app-page/module.compiled';
import type { LoaderTree } from '../../server/lib/app-dir-module';
import { AppPageRouteModule } from '../../server/future/route-modules/app-page/module.compiled';
/**
* The tree created in next-app-loader that holds component segments and modules
* and I've updated it.
@@ -13,5 +13,5 @@ export declare const __next_app__: {
require: any;
loadChunk: any;
};
export * from 'next/dist/server/app-render/entry-base';
export * from '../../server/app-render/entry-base';
export declare const routeModule: AppPageRouteModule;

View File

@@ -1,4 +1,4 @@
import { PagesRouteModule } from 'next/dist/server/future/route-modules/pages/module.compiled';
import { PagesRouteModule } from '../../server/future/route-modules/pages/module.compiled';
declare const _default: any;
export default _default;
export declare const getStaticProps: any;

View File

@@ -1,10 +1,10 @@
import { webpack } from 'next/dist/compiled/webpack/webpack';
import type { CustomRoutes } from 'next/dist/lib/load-custom-routes.js';
import type { CompilerNameValues } from 'next/dist/shared/lib/constants.js';
import type { NextConfigComplete } from 'next/dist/server/config-shared.js';
import type { Span } from 'next/dist/trace/index.js';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info.js';
import { type JsConfig, type ResolvedBaseUrl } from 'next/dist/build/load-jsconfig.js';
import type { CustomRoutes } from '../lib/load-custom-routes.js';
import type { CompilerNameValues } from '../shared/lib/constants';
import type { NextConfigComplete } from '../server/config-shared';
import type { Span } from '../trace';
import type { MiddlewareMatcher } from './analysis/get-page-static-info';
import { type JsConfig, type ResolvedBaseUrl } from './load-jsconfig';
export declare const NEXT_PROJECT_ROOT: string;
export declare const NEXT_PROJECT_ROOT_DIST: string;
export declare const babelIncludeRegexes: RegExp[];
@@ -121,8 +121,8 @@ export default function getBaseWebpackConfig(dir: string, { buildId, encryptionK
supportedBrowsers: string[] | undefined;
edgePreviewProps?: Record<string, string>;
clientRouterFilters?: {
staticFilter: ReturnType<import('next/dist/shared/lib/bloom-filter.js').BloomFilter['export']>;
dynamicFilter: ReturnType<import('next/dist/shared/lib/bloom-filter.js').BloomFilter['export']>;
staticFilter: ReturnType<import('../shared/lib/bloom-filter').BloomFilter['export']>;
dynamicFilter: ReturnType<import('../shared/lib/bloom-filter').BloomFilter['export']>;
};
fetchCacheKeyPrefix?: string;
}): Promise<webpack.Configuration>;

View File

@@ -1,4 +1,4 @@
import type { MiddlewareConfig, MiddlewareMatcher, RSCModuleType } from 'next/dist/build/analysis/get-page-static-info';
import type { MiddlewareConfig, MiddlewareMatcher, RSCModuleType } from '../../analysis/get-page-static-info';
import type { webpack } from 'next/dist/compiled/webpack/webpack';
export type ModuleBuildInfo = {
nextEdgeMiddleware?: EdgeMiddlewareMeta;

View File

@@ -1,8 +1,8 @@
import type webpack from 'next/dist/compiled/webpack/webpack';
import { type ValueOf } from 'next/dist/shared/lib/constants';
import type { ModuleReference, CollectedMetadata } from 'next/dist/build/webpack/loaders/metadata/types';
import type { NextConfig } from 'next/dist/server/config-shared';
import type { PageExtensions } from 'next/dist/build/page-extensions-type';
import { type ValueOf } from '../../../shared/lib/constants';
import type { ModuleReference, CollectedMetadata } from './metadata/types';
import type { NextConfig } from '../../../server/config-shared';
import type { PageExtensions } from '../../page-extensions-type';
export type AppLoaderOptions = {
name: string;
page: string;

View File

@@ -1,7 +1,7 @@
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { NextConfigComplete } from '../../../server/config-shared';
import type { MiddlewareMatcher } from '../../analysis/get-page-static-info';
import { webpack } from 'next/dist/compiled/webpack/webpack';
type BloomFilter = ReturnType<import('next/dist/shared/lib/bloom-filter').BloomFilter['export']>;
type BloomFilter = ReturnType<import('../../../shared/lib/bloom-filter').BloomFilter['export']>;
export interface DefineEnvPluginOptions {
isTurbopack: boolean;
clientRouterFilters?: {

View File

@@ -1,7 +1,7 @@
import type { AssetBinding } from 'next/dist/build/webpack/loaders/get-module-build-info';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { AssetBinding } from '../loaders/get-module-build-info';
import type { MiddlewareMatcher } from '../../analysis/get-page-static-info';
import { webpack } from 'next/dist/compiled/webpack/webpack';
import type { CustomRoutes } from 'next/dist/lib/load-custom-routes';
import type { CustomRoutes } from '../../../lib/load-custom-routes';
export interface EdgeFunctionDefinition {
files: string[];
name: string;

View File

@@ -1,2 +1,2 @@
import type { ActionAsyncStorage } from 'next/dist/client/components/action-async-storage.external';
import type { ActionAsyncStorage } from './action-async-storage.external';
export declare const actionAsyncStorage: ActionAsyncStorage;

View File

@@ -1,6 +1,6 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import { actionAsyncStorage } from 'next/dist/client/components/action-async-storage-instance';
import { actionAsyncStorage } from './action-async-storage-instance';
export interface ActionStore {
readonly isAction?: boolean;
readonly isAppRoute?: boolean;

View File

@@ -1,8 +1,8 @@
import type { ReactNode } from 'react';
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { ErrorComponent } from 'next/dist/client/components/error-boundary';
import type { ServerActionDispatcher } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { InitialRouterStateParameters } from 'next/dist/client/components/router-reducer/create-initial-router-state';
import type { CacheNode } from '../../shared/lib/app-router-context.shared-runtime';
import type { ErrorComponent } from './error-boundary';
import type { ServerActionDispatcher } from './router-reducer/router-reducer-types';
import type { InitialRouterStateParameters } from './router-reducer/create-initial-router-state';
export declare function getServerActionDispatcher(): ServerActionDispatcher | null;
export declare function urlToUrlWithoutFlightMarker(url: string): URL;
type AppRouterProps = Omit<Omit<InitialRouterStateParameters, 'isServer' | 'location'>, 'initialParallelRoutes'> & {

View File

@@ -1,4 +1,4 @@
import type { DraftModeProvider } from 'next/dist/server/async-storage/draft-mode-provider';
import type { DraftModeProvider } from '../../server/async-storage/draft-mode-provider';
export declare class DraftMode {
constructor(provider: DraftModeProvider);
get isEnabled(): boolean;

View File

@@ -1,5 +1,5 @@
import { type ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
import { DraftMode } from 'next/dist/client/components/draft-mode';
import { type ReadonlyRequestCookies } from '../../server/web/spec-extension/adapters/request-cookies';
import { DraftMode } from './draft-mode';
/**
* This function allows you to read the HTTP incoming request headers in
* [Server Components](https://nextjs.org/docs/app/building-your-application/rendering/server-components),
@@ -9,6 +9,6 @@ import { DraftMode } from 'next/dist/client/components/draft-mode';
*
* Read more: [Next.js Docs: `headers`](https://nextjs.org/docs/app/api-reference/functions/headers)
*/
export declare function headers(): import("next/dist/server/web/spec-extension/adapters/headers").ReadonlyHeaders;
export declare function headers(): import("../../server/web/spec-extension/adapters/headers").ReadonlyHeaders;
export declare function cookies(): ReadonlyRequestCookies;
export declare function draftMode(): DraftMode;

View File

@@ -1,5 +1,5 @@
import type { FlightSegmentPath } from 'next/dist/server/app-render/types';
import type { ErrorComponent } from 'next/dist/client/components/error-boundary';
import type { FlightSegmentPath } from '../../server/app-render/types';
import type { ErrorComponent } from './error-boundary';
import React from 'react';
/**
* OuterLayoutRouter handles the current segment as well as <Offscreen> rendering of other segments.

View File

@@ -1,5 +1,5 @@
import { type AppRouterInstance } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import { ReadonlyURLSearchParams } from 'next/dist/client/components/navigation.react-server';
import { type AppRouterInstance } from '../../shared/lib/app-router-context.shared-runtime';
import { ReadonlyURLSearchParams } from './navigation.react-server';
/**
* A [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components) hook
* that lets you *read* the current URL's search parameters.
@@ -39,7 +39,7 @@ declare function useSearchParams(): ReadonlyURLSearchParams;
* Read more: [Next.js Docs: `usePathname`](https://nextjs.org/docs/app/api-reference/functions/use-pathname)
*/
declare function usePathname(): string;
import { ServerInsertedHTMLContext, useServerInsertedHTML } from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
import { ServerInsertedHTMLContext, useServerInsertedHTML } from '../../shared/lib/server-inserted-html.shared-runtime';
/**
*
* This hook allows you to programmatically change routes inside [Client Component](https://nextjs.org/docs/app/building-your-application/rendering/client-components).
@@ -126,4 +126,4 @@ declare function useSelectedLayoutSegments(parallelRouteKey?: string): string[];
*/
declare function useSelectedLayoutSegment(parallelRouteKey?: string): string | null;
export { useSearchParams, usePathname, useSelectedLayoutSegment, useSelectedLayoutSegments, useParams, useRouter, useServerInsertedHTML, ServerInsertedHTMLContext, };
export { notFound, redirect, permanentRedirect, RedirectType, ReadonlyURLSearchParams, } from 'next/dist/client/components/navigation.react-server';
export { notFound, redirect, permanentRedirect, RedirectType, ReadonlyURLSearchParams, } from './navigation.react-server';

View File

@@ -8,6 +8,6 @@ declare class ReadonlyURLSearchParams extends URLSearchParams {
/** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */
sort(): void;
}
export { redirect, permanentRedirect, RedirectType } from 'next/dist/client/components/redirect';
export { notFound } from 'next/dist/client/components/not-found';
export { redirect, permanentRedirect, RedirectType } from './redirect';
export { notFound } from './not-found';
export { ReadonlyURLSearchParams };

View File

@@ -1,5 +1,5 @@
import type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';
import { RedirectStatusCode } from 'next/dist/client/components/redirect-status-code';
import type { ResponseCookies } from '../../server/web/spec-extension/cookies';
import { RedirectStatusCode } from './redirect-status-code';
declare const REDIRECT_ERROR_CODE = "NEXT_REDIRECT";
export declare enum RedirectType {
push = "push",

View File

@@ -1,2 +1,2 @@
import type { RequestAsyncStorage } from 'next/dist/client/components/request-async-storage.external';
import type { RequestAsyncStorage } from './request-async-storage.external';
export declare const requestAsyncStorage: RequestAsyncStorage;

View File

@@ -1,11 +1,11 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import type { DraftModeProvider } from 'next/dist/server/async-storage/draft-mode-provider';
import type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';
import type { ReadonlyHeaders } from 'next/dist/server/web/spec-extension/adapters/headers';
import type { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
import { requestAsyncStorage } from 'next/dist/client/components/request-async-storage-instance';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { DraftModeProvider } from '../../server/async-storage/draft-mode-provider';
import type { ResponseCookies } from '../../server/web/spec-extension/cookies';
import type { ReadonlyHeaders } from '../../server/web/spec-extension/adapters/headers';
import type { ReadonlyRequestCookies } from '../../server/web/spec-extension/adapters/request-cookies';
import { requestAsyncStorage } from './request-async-storage-instance';
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
export interface RequestStore {
readonly headers: ReadonlyHeaders;
readonly cookies: ReadonlyRequestCookies;

View File

@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, CacheNodeSeedData } from 'next/dist/server/app-render/types';
import { type PrefetchCacheEntry } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, CacheNodeSeedData } from '../../../server/app-render/types';
import { type PrefetchCacheEntry } from './router-reducer-types';
export interface InitialRouterStateParameters {
buildId: string;
initialTree: FlightRouterState;
@@ -15,7 +15,7 @@ export interface InitialRouterStateParameters {
export declare function createInitialRouterState({ buildId, initialTree, initialSeedData, urlParts, initialParallelRoutes, location, initialHead, couldBeIntercepted, }: InitialRouterStateParameters): {
buildId: string;
tree: FlightRouterState;
cache: import("next/dist/shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
cache: import("../../../shared/lib/app-router-context.shared-runtime").ReadyCacheNode;
prefetchCache: Map<string, PrefetchCacheEntry>;
pushRef: {
pendingPush: boolean;

View File

@@ -1,5 +1,5 @@
import type { FlightRouterState, FlightData } from 'next/dist/server/app-render/types';
import { PrefetchKind } from 'next/dist/client/components/router-reducer/router-reducer-types';
import type { FlightRouterState, FlightData } from '../../../server/app-render/types';
import { PrefetchKind } from './router-reducer-types';
export type FetchServerResponseResult = [
flightData: FlightData,
canonicalUrlOverride: URL | undefined,

View File

@@ -1,6 +1,6 @@
import type { CacheNode } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, FlightSegmentPath } from 'next/dist/server/app-render/types';
import type { FetchServerResponseResult } from 'next/dist/client/components/router-reducer/fetch-server-response';
import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime';
import type { FlightRouterState, FlightSegmentPath } from '../../../server/app-render/types';
import type { FetchServerResponseResult } from './fetch-server-response';
export declare const ACTION_REFRESH = "refresh";
export declare const ACTION_NAVIGATE = "navigate";
export declare const ACTION_RESTORE = "restore";

View File

@@ -1,2 +1,2 @@
import type { StaticGenerationAsyncStorage } from 'next/dist/client/components/static-generation-async-storage.external';
import type { StaticGenerationAsyncStorage } from './static-generation-async-storage.external';
export declare const staticGenerationAsyncStorage: StaticGenerationAsyncStorage;

View File

@@ -1,11 +1,11 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import type { IncrementalCache } from 'next/dist/server/lib/incremental-cache';
import type { DynamicServerError } from 'next/dist/client/components/hooks-server-context';
import type { FetchMetrics } from 'next/dist/server/base-http';
import type { Revalidate } from 'next/dist/server/lib/revalidate';
import type { PrerenderState } from 'next/dist/server/app-render/dynamic-rendering';
import { staticGenerationAsyncStorage } from 'next/dist/client/components/static-generation-async-storage-instance';
import type { IncrementalCache } from '../../server/lib/incremental-cache';
import type { DynamicServerError } from './hooks-server-context';
import type { FetchMetrics } from '../../server/base-http';
import type { Revalidate } from '../../server/lib/revalidate';
import type { PrerenderState } from '../../server/app-render/dynamic-rendering';
import { staticGenerationAsyncStorage } from './static-generation-async-storage-instance';
export interface StaticGenerationStore {
readonly isStaticGeneration: boolean;
readonly pagePath?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import type { OnLoadingComplete, PlaceholderValue } from 'next/dist/shared/lib/get-img-props';
import type { ImageLoaderProps } from 'next/dist/shared/lib/image-config';
import type { OnLoadingComplete, PlaceholderValue } from '../shared/lib/get-img-props';
import type { ImageLoaderProps } from '../shared/lib/image-config';
export type { ImageLoaderProps };
export type ImageLoader = (p: ImageLoaderProps) => string;
/**
@@ -9,12 +9,12 @@ export type ImageLoader = (p: ImageLoaderProps) => string;
* Read more: [Next.js docs: `Image`](https://nextjs.org/docs/app/api-reference/components/image)
*/
export declare const Image: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, "height" | "width" | "loading" | "ref" | "alt" | "src" | "srcSet"> & {
src: string | import("next/dist/shared/lib/get-img-props").StaticImport;
src: string | import("../shared/lib/get-img-props").StaticImport;
alt: string;
width?: number | `${number}` | undefined;
height?: number | `${number}` | undefined;
fill?: boolean | undefined;
loader?: import("next/dist/shared/lib/get-img-props").ImageLoader | undefined;
loader?: import("../shared/lib/get-img-props").ImageLoader | undefined;
quality?: number | `${number}` | undefined;
priority?: boolean | undefined;
loading?: "eager" | "lazy" | undefined;

View File

@@ -1,6 +1,6 @@
import type { ComponentType } from 'react';
import type { RouteLoader } from 'next/dist/client/route-loader';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { RouteLoader } from './route-loader';
import type { MiddlewareMatcher } from '../build/analysis/get-page-static-info';
declare global {
interface Window {
__DEV_MIDDLEWARE_MATCHERS?: MiddlewareMatcher[];

View File

@@ -1,5 +1,5 @@
import type { ComponentType } from 'react';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { MiddlewareMatcher } from '../build/analysis/get-page-static-info';
declare global {
interface Window {
__BUILD_MANIFEST?: Record<string, string[]>;

View File

@@ -1,5 +1,5 @@
import Router from 'next/dist/shared/lib/router/router';
import type { NextRouter } from 'next/dist/shared/lib/router/router';
import Router from '../shared/lib/router/router';
import type { NextRouter } from '../shared/lib/router/router';
type SingletonRouterBase = {
router: Router | null;
readyCallbacks: Array<() => any>;
@@ -12,7 +12,7 @@ declare const routerEvents: readonly ["routeChangeStart", "beforeHistoryChange",
export type RouterEvent = (typeof routerEvents)[number];
declare const _default: SingletonRouter;
export default _default;
export { default as withRouter } from 'next/dist/client/with-router';
export { default as withRouter } from './with-router';
/**
* This hook gives access the [router object](https://nextjs.org/docs/pages/api-reference/functions/use-router#router-object)
* inside the [Pages Router](https://nextjs.org/docs/pages/building-your-application).

View File

@@ -1,6 +1,6 @@
import React from 'react';
import type { BaseContext, NextComponentType, NextPageContext } from 'next/dist/shared/lib/utils';
import type { NextRouter } from 'next/dist/client/router';
import type { BaseContext, NextComponentType, NextPageContext } from '../shared/lib/utils';
import type { NextRouter } from './router';
export type WithRouterProps = {
router: NextRouter;
};

View File

@@ -1,4 +1,4 @@
import type { CssVariable, Display, NextFont, NextFontWithVariable } from 'next/dist/compiled/@next/font';
import type { CssVariable, Display, NextFont, NextFontWithVariable } from '../types';
type LocalFont<T extends CssVariable | undefined = undefined> = {
src: string | Array<{
path: string;

View File

@@ -2,7 +2,7 @@
/// <reference types="react" />
/// <reference types="node" />
import type { SatoriOptions } from "next/dist/compiled/@vercel/og/satori";
import type { EmojiType } from 'next/dist/compiled/@vercel/og/emoji';
import type { EmojiType } from './emoji';
import type { OutgoingHttpHeader } from 'http';
declare type ImageOptions = {
/**

View File

@@ -1,4 +1,4 @@
import type { ServerRuntime } from 'next/types';
import type { ServerRuntime } from '../../types';
export declare const NEXT_QUERY_PARAM_PREFIX = "nxtP";
export declare const PRERENDER_REVALIDATE_HEADER = "x-prerender-revalidate";
export declare const PRERENDER_REVALIDATE_ONLY_GENERATED_HEADER = "x-prerender-revalidate-if-generated";

View File

@@ -1,4 +1,4 @@
import type { NextConfig } from 'next/dist/server/config';
import type { NextConfig } from '../server/config';
export type RouteHas = {
type: 'header' | 'query' | 'cookie';
key: string;

View File

@@ -1,9 +1,9 @@
import type { AlternateURLs, Languages, ResolvedAlternateURLs } from 'next/dist/lib/metadata/types/alternative-urls-types';
import type { AppleWebApp, AppLinks, Facebook, FormatDetection, ItunesApp, ResolvedAppleWebApp, ResolvedAppLinks, ResolvedFacebook, ViewportLayout } from 'next/dist/lib/metadata/types/extra-types';
import type { DeprecatedMetadataFields, AbsoluteTemplateString, Author, ColorSchemeEnum, Icon, Icons, IconURL, ReferrerEnum, ResolvedIcons, ResolvedVerification, Robots, ResolvedRobots, TemplateString, Verification, ThemeColorDescriptor } from 'next/dist/lib/metadata/types/metadata-types';
import type { Manifest as ManifestFile } from 'next/dist/lib/metadata/types/manifest-types';
import type { OpenGraph, ResolvedOpenGraph } from 'next/dist/lib/metadata/types/opengraph-types';
import type { ResolvedTwitterMetadata, Twitter } from 'next/dist/lib/metadata/types/twitter-types';
import type { AlternateURLs, Languages, ResolvedAlternateURLs } from './alternative-urls-types';
import type { AppleWebApp, AppLinks, Facebook, FormatDetection, ItunesApp, ResolvedAppleWebApp, ResolvedAppLinks, ResolvedFacebook, ViewportLayout } from './extra-types';
import type { DeprecatedMetadataFields, AbsoluteTemplateString, Author, ColorSchemeEnum, Icon, Icons, IconURL, ReferrerEnum, ResolvedIcons, ResolvedVerification, Robots, ResolvedRobots, TemplateString, Verification, ThemeColorDescriptor } from './metadata-types';
import type { Manifest as ManifestFile } from './manifest-types';
import type { OpenGraph, ResolvedOpenGraph } from './opengraph-types';
import type { ResolvedTwitterMetadata, Twitter } from './twitter-types';
/**
* Metadata interface to describe all the metadata fields that can be set in a document.
* @interface

View File

@@ -1,4 +1,4 @@
import type { AbsoluteTemplateString, TemplateString } from 'next/dist/lib/metadata/types/metadata-types';
import type { AbsoluteTemplateString, TemplateString } from './metadata-types';
export type OpenGraphType = 'article' | 'book' | 'music.song' | 'music.album' | 'music.playlist' | 'music.radio_station' | 'profile' | 'website' | 'video.tv_show' | 'video.other' | 'video.movie' | 'video.episode';
export type OpenGraph = OpenGraphWebsite | OpenGraphArticle | OpenGraphBook | OpenGraphProfile | OpenGraphMusicSong | OpenGraphMusicAlbum | OpenGraphMusicPlaylist | OpenGraphRadioStation | OpenGraphVideoMovie | OpenGraphVideoEpisode | OpenGraphVideoTVShow | OpenGraphVideoOther | OpenGraphMetadata;
type Locale = string;

View File

@@ -1,4 +1,4 @@
import type { AbsoluteTemplateString, TemplateString } from 'next/dist/lib/metadata/types/metadata-types';
import type { AbsoluteTemplateString, TemplateString } from './metadata-types';
export type Twitter = TwitterSummary | TwitterSummaryLargeImage | TwitterPlayer | TwitterApp | TwitterMetadata;
type TwitterMetadata = {
site?: string;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import type { AppContextType, AppInitialProps, AppPropsType, NextWebVitalsMetric, AppType } from 'next/dist/shared/lib/utils';
import type { Router } from 'next/dist/client/router';
import type { AppContextType, AppInitialProps, AppPropsType, NextWebVitalsMetric, AppType } from '../shared/lib/utils';
import type { Router } from '../client/router';
export type { AppInitialProps, AppType };
export type { NextWebVitalsMetric };
export type AppContext = AppContextType<Router>;

View File

@@ -1,7 +1,7 @@
import React from 'react';
import type { ReactNode } from 'react';
import type { DocumentContext, DocumentInitialProps, DocumentProps } from 'next/dist/shared/lib/utils';
import type { HtmlProps } from 'next/dist/shared/lib/html-context.shared-runtime';
import type { DocumentContext, DocumentInitialProps, DocumentProps } from '../shared/lib/utils';
import type { HtmlProps } from '../shared/lib/html-context.shared-runtime';
export type { DocumentContext, DocumentInitialProps, DocumentProps };
export type OriginProps = {
nonce?: string;

View File

@@ -1,5 +1,5 @@
import React from 'react';
import type { NextPageContext } from 'next/dist/shared/lib/utils';
import type { NextPageContext } from '../shared/lib/utils';
export type ErrorProps = {
statusCode: number;
title?: string;

View File

@@ -1,7 +1,7 @@
/// <reference types="node" />
import type { IncomingMessage } from 'http';
import type { BaseNextRequest } from 'next/dist/server/base-http';
import type { NextApiResponse } from 'next/dist/shared/lib/utils';
import type { BaseNextRequest } from '../base-http';
import type { NextApiResponse } from '../../shared/lib/utils';
export type NextApiRequestCookies = Partial<{
[key: string]: string;
}>;

View File

@@ -1,15 +1,15 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { ActionResult, DynamicParamTypesShort, FlightRouterState, FlightSegmentPath, RenderOpts, Segment } from 'next/dist/server/app-render/types';
import type { StaticGenerationStore } from 'next/dist/client/components/static-generation-async-storage.external';
import type { RequestStore } from 'next/dist/client/components/request-async-storage.external';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { AppPageModule } from 'next/dist/server/future/route-modules/app-page/module';
import type { ClientReferenceManifest } from 'next/dist/build/webpack/plugins/flight-manifest-plugin';
import type { Revalidate } from 'next/dist/server/lib/revalidate';
import RenderResult, { type AppPageRenderResultMetadata } from 'next/dist/server/render-result';
import { type ErrorHandler } from 'next/dist/server/app-render/create-error-handler';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { ActionResult, DynamicParamTypesShort, FlightRouterState, FlightSegmentPath, RenderOpts, Segment } from './types';
import type { StaticGenerationStore } from '../../client/components/static-generation-async-storage.external';
import type { RequestStore } from '../../client/components/request-async-storage.external';
import type { NextParsedUrlQuery } from '../request-meta';
import type { AppPageModule } from '../future/route-modules/app-page/module';
import type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin';
import type { Revalidate } from '../lib/revalidate';
import RenderResult, { type AppPageRenderResultMetadata } from '../render-result';
import { type ErrorHandler } from './create-error-handler';
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
export type GetDynamicParamFromSegment = (segment: string) => {
param: string;
value: string | string[] | null;

View File

@@ -19,7 +19,7 @@
* unstable_cache should error. If you want to use some dynamic data inside unstable_cache you should
* read that data outside the cache and pass it in as an argument to the cached function.
*/
import type { StaticGenerationStore } from 'next/dist/client/components/static-generation-async-storage.external';
import type { StaticGenerationStore } from '../../client/components/static-generation-async-storage.external';
type DynamicAccess = {
/**
* If debugging, this will contain the stack trace of where the dynamic access

View File

@@ -1,17 +1,17 @@
export { renderToReadableStream, decodeReply, decodeAction, decodeFormState, } from 'react-server-dom-webpack/server.edge';
import AppRouter from 'next/dist/client/components/app-router';
import LayoutRouter from 'next/dist/client/components/layout-router';
import RenderFromTemplateContext from 'next/dist/client/components/render-from-template-context';
import { staticGenerationAsyncStorage } from 'next/dist/client/components/static-generation-async-storage.external';
import { requestAsyncStorage } from 'next/dist/client/components/request-async-storage.external';
import { actionAsyncStorage } from 'next/dist/client/components/action-async-storage.external';
import { ClientPageRoot } from 'next/dist/client/components/client-page';
import { createUntrackedSearchParams, createDynamicallyTrackedSearchParams } from 'next/dist/client/components/search-params';
import * as serverHooks from 'next/dist/client/components/hooks-server-context';
import { NotFoundBoundary } from 'next/dist/client/components/not-found-boundary';
import 'next/dist/client/components/error-boundary';
import { preloadStyle, preloadFont, preconnect } from 'next/dist/server/app-render/rsc/preloads';
import { Postpone } from 'next/dist/server/app-render/rsc/postpone';
import { taintObjectReference } from 'next/dist/server/app-render/rsc/taint';
import AppRouter from '../../client/components/app-router';
import LayoutRouter from '../../client/components/layout-router';
import RenderFromTemplateContext from '../../client/components/render-from-template-context';
import { staticGenerationAsyncStorage } from '../../client/components/static-generation-async-storage.external';
import { requestAsyncStorage } from '../../client/components/request-async-storage.external';
import { actionAsyncStorage } from '../../client/components/action-async-storage.external';
import { ClientPageRoot } from '../../client/components/client-page';
import { createUntrackedSearchParams, createDynamicallyTrackedSearchParams } from '../../client/components/search-params';
import * as serverHooks from '../../client/components/hooks-server-context';
import { NotFoundBoundary } from '../../client/components/not-found-boundary';
import '../../client/components/error-boundary';
import { preloadStyle, preloadFont, preconnect } from '../../server/app-render/rsc/preloads';
import { Postpone } from '../../server/app-render/rsc/postpone';
import { taintObjectReference } from '../../server/app-render/rsc/taint';
declare function patchFetch(): void;
export { AppRouter, LayoutRouter, RenderFromTemplateContext, staticGenerationAsyncStorage, requestAsyncStorage, actionAsyncStorage, createUntrackedSearchParams, createDynamicallyTrackedSearchParams, serverHooks, preloadStyle, preloadFont, preconnect, Postpone, taintObjectReference, ClientPageRoot, NotFoundBoundary, patchFetch, };

View File

@@ -1 +1 @@
export { Postpone } from 'next/dist/server/app-render/dynamic-rendering';
export { Postpone } from '../dynamic-rendering';

View File

@@ -1,15 +1,15 @@
/// <reference types="react" />
/// <reference types="node" />
import type { LoadComponentsReturnType } from 'next/dist/server/load-components';
import type { ServerRuntime, SizeLimit } from 'next/types';
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { ClientReferenceManifest } from 'next/dist/build/webpack/plugins/flight-manifest-plugin';
import type { NextFontManifest } from 'next/dist/build/webpack/plugins/next-font-manifest-plugin';
import type { LoadComponentsReturnType } from '../load-components';
import type { ServerRuntime, SizeLimit } from '../../../types';
import type { NextConfigComplete } from '../../server/config-shared';
import type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin';
import type { NextFontManifest } from '../../build/webpack/plugins/next-font-manifest-plugin';
import type { ParsedUrlQuery } from 'querystring';
import type { AppPageModule } from 'next/dist/server/future/route-modules/app-page/module';
import type { SwrDelta } from 'next/dist/server/lib/revalidate';
import type { LoadingModuleData } from 'next/dist/shared/lib/app-router-context.shared-runtime';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { AppPageModule } from '../future/route-modules/app-page/module';
import type { SwrDelta } from '../lib/revalidate';
import type { LoadingModuleData } from '../../shared/lib/app-router-context.shared-runtime';
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
import s from 'next/dist/compiled/superstruct';
export type DynamicParamTypes = 'catchall' | 'catchall-intercepted' | 'optional-catchall' | 'dynamic' | 'dynamic-intercepted';
declare const dynamicParamTypesSchema: s.Struct<"d" | "c" | "ci" | "oc" | "di", {
@@ -91,7 +91,7 @@ export interface RenderOptsPartial {
crossOrigin?: '' | 'anonymous' | 'use-credentials' | undefined;
nextFontManifest?: DeepReadonly<NextFontManifest>;
isBot?: boolean;
incrementalCache?: import('next/dist/server/lib/incremental-cache').IncrementalCache;
incrementalCache?: import('../lib/incremental-cache').IncrementalCache;
isRevalidate?: boolean;
nextExport?: boolean;
nextConfigOutput?: 'standalone' | 'export';

View File

@@ -1,10 +1,10 @@
/// <reference types="node" />
import type { IncomingMessage } from 'http';
import type { ReadonlyRequestCookies } from 'next/dist/server/web/spec-extension/adapters/request-cookies';
import type { ResponseCookies } from 'next/dist/server/web/spec-extension/cookies';
import type { BaseNextRequest } from 'next/dist/server/base-http';
import type { NextRequest } from 'next/dist/server/web/spec-extension/request';
import type { __ApiPreviewProps } from 'next/dist/server/api-utils';
import type { ReadonlyRequestCookies } from '../web/spec-extension/adapters/request-cookies';
import type { ResponseCookies } from '../web/spec-extension/cookies';
import type { BaseNextRequest } from '../base-http';
import type { NextRequest } from '../web/spec-extension/request';
import type { __ApiPreviewProps } from '../api-utils';
export declare class DraftModeProvider {
readonly isEnabled: boolean;
constructor(previewProps: __ApiPreviewProps | undefined, req: IncomingMessage | BaseNextRequest<unknown> | NextRequest, cookies: ReadonlyRequestCookies, mutableCookies: ResponseCookies);

View File

@@ -1,7 +1,7 @@
/// <reference types="node" />
import type { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import type { I18NConfig } from 'next/dist/server/config-shared';
import type { NextApiRequestCookies } from 'next/dist/server/api-utils';
import type { I18NConfig } from '../config-shared';
import type { NextApiRequestCookies } from '../api-utils';
export interface BaseNextRequestConfig {
basePath: string | undefined;
i18n?: I18NConfig;

View File

@@ -2,11 +2,11 @@
/// <reference types="node" />
import type { ServerResponse, IncomingMessage } from 'http';
import type { Writable, Readable } from 'stream';
import { SYMBOL_CLEARED_COOKIES } from 'next/dist/server/api-utils';
import type { NextApiRequestCookies } from 'next/dist/server/api-utils';
import { NEXT_REQUEST_META } from 'next/dist/server/request-meta';
import type { RequestMeta } from 'next/dist/server/request-meta';
import { BaseNextRequest, BaseNextResponse, type FetchMetric } from 'next/dist/server/base-http';
import { SYMBOL_CLEARED_COOKIES } from '../api-utils';
import type { NextApiRequestCookies } from '../api-utils';
import { NEXT_REQUEST_META } from '../request-meta';
import type { RequestMeta } from '../request-meta';
import { BaseNextRequest, BaseNextResponse, type FetchMetric } from './index';
import type { OutgoingHttpHeaders } from 'node:http';
type Req = IncomingMessage & {
[NEXT_REQUEST_META]?: RequestMeta;

View File

@@ -1,37 +1,37 @@
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import type { __ApiPreviewProps } from 'next/dist/server/api-utils';
import type { FontManifest } from 'next/dist/server/font-utils';
import type { LoadComponentsReturnType } from 'next/dist/server/load-components';
import type { MiddlewareRouteMatch } from 'next/dist/shared/lib/router/utils/middleware-route-matcher';
import type { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
import type { NextConfig, NextConfigComplete } from 'next/dist/server/config-shared';
import type { NextParsedUrlQuery, NextUrlWithParsedQuery } from 'next/dist/server/request-meta';
import type { __ApiPreviewProps } from './api-utils';
import type { FontManifest } from './font-utils';
import type { LoadComponentsReturnType } from './load-components';
import type { MiddlewareRouteMatch } from '../shared/lib/router/utils/middleware-route-matcher';
import type { Params } from '../shared/lib/router/utils/route-matcher';
import type { NextConfig, NextConfigComplete } from './config-shared';
import type { NextParsedUrlQuery, NextUrlWithParsedQuery } from './request-meta';
import type { ParsedUrlQuery } from 'querystring';
import type { RenderOptsPartial as PagesRenderOptsPartial } from 'next/dist/server/render';
import type { RenderOptsPartial as AppRenderOptsPartial } from 'next/dist/server/app-render/types';
import type { ResponseCacheBase } from 'next/dist/server/response-cache';
import type { RenderOptsPartial as PagesRenderOptsPartial } from './render';
import type { RenderOptsPartial as AppRenderOptsPartial } from './app-render/types';
import type { ResponseCacheBase } from './response-cache';
import type { UrlWithParsedQuery } from 'url';
import type { PagesManifest } from 'next/dist/build/webpack/plugins/pages-manifest-plugin';
import type { BaseNextRequest, BaseNextResponse } from 'next/dist/server/base-http';
import type { ManifestRewriteRoute, ManifestRoute, PrerenderManifest } from 'next/dist/build';
import type { ClientReferenceManifest } from 'next/dist/build/webpack/plugins/flight-manifest-plugin';
import type { NextFontManifest } from 'next/dist/build/webpack/plugins/next-font-manifest-plugin';
import type { PagesAPIRouteMatch } from 'next/dist/server/future/route-matches/pages-api-route-match';
import type { PagesManifest } from '../build/webpack/plugins/pages-manifest-plugin';
import type { BaseNextRequest, BaseNextResponse } from './base-http';
import type { ManifestRewriteRoute, ManifestRoute, PrerenderManifest } from '../build';
import type { ClientReferenceManifest } from '../build/webpack/plugins/flight-manifest-plugin';
import type { NextFontManifest } from '../build/webpack/plugins/next-font-manifest-plugin';
import type { PagesAPIRouteMatch } from './future/route-matches/pages-api-route-match';
import type { Server as HTTPServer, IncomingMessage } from 'http';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import { type Revalidate, type SwrDelta } from 'next/dist/server/lib/revalidate';
import RenderResult from 'next/dist/server/render-result';
import type { RouteMatcherManager } from 'next/dist/server/future/route-matcher-managers/route-matcher-manager';
import { LocaleRouteNormalizer } from 'next/dist/server/future/normalizers/locale-route-normalizer';
import { I18NProvider } from 'next/dist/server/future/helpers/i18n-provider';
import { RSCPathnameNormalizer } from 'next/dist/server/future/normalizers/request/rsc';
import { PostponedPathnameNormalizer } from 'next/dist/server/future/normalizers/request/postponed';
import { ActionPathnameNormalizer } from 'next/dist/server/future/normalizers/request/action';
import { PrefetchRSCPathnameNormalizer } from 'next/dist/server/future/normalizers/request/prefetch-rsc';
import { NextDataPathnameNormalizer } from 'next/dist/server/future/normalizers/request/next-data';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { MiddlewareMatcher } from '../build/analysis/get-page-static-info';
import { type Revalidate, type SwrDelta } from './lib/revalidate';
import RenderResult from './render-result';
import type { RouteMatcherManager } from './future/route-matcher-managers/route-matcher-manager';
import { LocaleRouteNormalizer } from './future/normalizers/locale-route-normalizer';
import { I18NProvider } from './future/helpers/i18n-provider';
import { RSCPathnameNormalizer } from './future/normalizers/request/rsc';
import { PostponedPathnameNormalizer } from './future/normalizers/request/postponed';
import { ActionPathnameNormalizer } from './future/normalizers/request/action';
import { PrefetchRSCPathnameNormalizer } from './future/normalizers/request/prefetch-rsc';
import { NextDataPathnameNormalizer } from './future/normalizers/request/next-data';
import type { DeepReadonly } from '../shared/lib/deep-readonly';
export type FindComponentsResult = {
components: LoadComponentsReturnType;
query: NextParsedUrlQuery;
@@ -194,7 +194,7 @@ export default abstract class Server<ServerOptions extends Options = Options> {
protected abstract getIncrementalCache(options: {
requestHeaders: Record<string, undefined | string | string[]>;
requestProtocol: 'http' | 'https';
}): Promise<import('next/dist/server/lib/incremental-cache').IncrementalCache>;
}): Promise<import('./lib/incremental-cache').IncrementalCache>;
protected abstract getResponseCache(options: {
dev: boolean;
}): ResponseCacheBase;
@@ -254,7 +254,7 @@ export default abstract class Server<ServerOptions extends Options = Options> {
private renderImpl;
protected getStaticPaths({ pathname, }: {
pathname: string;
requestHeaders: import('next/dist/server/lib/incremental-cache').IncrementalCache['requestHeaders'];
requestHeaders: import('./lib/incremental-cache').IncrementalCache['requestHeaders'];
page: string;
isAppPath: boolean;
}): Promise<{

View File

@@ -1,11 +1,11 @@
import type { webpack } from 'next/dist/compiled/webpack/webpack';
import type { Header, Redirect, Rewrite } from 'next/dist/lib/load-custom-routes';
import type { ImageConfig, ImageConfigComplete } from 'next/dist/shared/lib/image-config';
import type { SubresourceIntegrityAlgorithm } from 'next/dist/build/webpack/plugins/subresource-integrity-plugin';
import type { WEB_VITALS } from 'next/dist/shared/lib/utils';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { SizeLimit } from 'next/types';
import type { SwrDelta } from 'next/dist/server/lib/revalidate';
import type { Header, Redirect, Rewrite } from '../lib/load-custom-routes';
import type { ImageConfig, ImageConfigComplete } from '../shared/lib/image-config';
import type { SubresourceIntegrityAlgorithm } from '../build/webpack/plugins/subresource-integrity-plugin';
import type { WEB_VITALS } from '../shared/lib/utils';
import type { NextParsedUrlQuery } from './request-meta';
import type { SizeLimit } from '../../types';
import type { SwrDelta } from './lib/revalidate';
export type NextConfigComplete = Required<NextConfig> & {
images: Required<ImageConfigComplete>;
typescript: Required<TypeScriptConfig>;

View File

@@ -1,6 +1,6 @@
import type { ExperimentalConfig, NextConfigComplete, NextConfig } from 'next/dist/server/config-shared';
export { normalizeConfig } from 'next/dist/server/config-shared';
export type { DomainLocale, NextConfig } from 'next/dist/server/config-shared';
import type { ExperimentalConfig, NextConfigComplete, NextConfig } from './config-shared';
export { normalizeConfig } from './config-shared';
export type { DomainLocale, NextConfig } from './config-shared';
export declare function warnOptionHasBeenDeprecated(config: NextConfig, nestedPropertyKey: string, reason: string, silent: boolean): void;
export declare function warnOptionHasBeenMovedOutOfExperimental(config: NextConfig, oldKey: string, newKey: string, configFileName: string, silent: boolean): NextConfig;
export default function loadConfig(phase: string, dir: string, { customConfig, rawConfig, silent, onLoadUserConfig, }?: {

View File

@@ -6,10 +6,10 @@ import type { IncomingMessage, ServerResponse } from 'http';
import type { UrlObject } from 'url';
import type { Duplex } from 'stream';
import type { webpack } from 'next/dist/compiled/webpack/webpack';
import type getBaseWebpackConfig from 'next/dist/build/webpack-config';
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { Project, Update as TurbopackUpdate } from 'next/dist/build/swc';
import type { VersionInfo } from 'next/dist/server/dev/parse-version-info';
import type getBaseWebpackConfig from '../../build/webpack-config';
import type { RouteDefinition } from '../future/route-definitions/route-definition';
import type { Project, Update as TurbopackUpdate } from '../../build/swc';
import type { VersionInfo } from './parse-version-info';
export declare const enum HMR_ACTIONS_SENT_TO_BROWSER {
ADDED_PAGE = "addedPage",
REMOVED_PAGE = "removedPage",

View File

@@ -1,23 +1,23 @@
/// <reference types="node" />
/// <reference types="node" />
import type { FindComponentsResult } from 'next/dist/server/next-server';
import type { LoadComponentsReturnType } from 'next/dist/server/load-components';
import type { Options as ServerOptions } from 'next/dist/server/next-server';
import type { Params } from 'next/dist/shared/lib/router/utils/route-matcher';
import type { ParsedUrl } from 'next/dist/shared/lib/router/utils/parse-url';
import type { FindComponentsResult } from '../next-server';
import type { LoadComponentsReturnType } from '../load-components';
import type { Options as ServerOptions } from '../next-server';
import type { Params } from '../../shared/lib/router/utils/route-matcher';
import type { ParsedUrl } from '../../shared/lib/router/utils/parse-url';
import type { ParsedUrlQuery } from 'querystring';
import type { UrlWithParsedQuery } from 'url';
import type { BaseNextRequest, BaseNextResponse } from 'next/dist/server/base-http';
import type { MiddlewareRoutingItem } from 'next/dist/server/base-server';
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteMatcherManager } from 'next/dist/server/future/route-matcher-managers/route-matcher-manager';
import type { NextParsedUrlQuery, NextUrlWithParsedQuery } from 'next/dist/server/request-meta';
import type { DevBundlerService } from 'next/dist/server/lib/dev-bundler-service';
import type { IncrementalCache } from 'next/dist/server/lib/incremental-cache';
import type { NodeNextResponse, NodeNextRequest } from 'next/dist/server/base-http/node';
import type { PagesManifest } from 'next/dist/build/webpack/plugins/pages-manifest-plugin';
import Server from 'next/dist/server/next-server';
import { type Span } from 'next/dist/trace';
import type { BaseNextRequest, BaseNextResponse } from '../base-http';
import type { MiddlewareRoutingItem } from '../base-server';
import type { RouteDefinition } from '../future/route-definitions/route-definition';
import type { RouteMatcherManager } from '../future/route-matcher-managers/route-matcher-manager';
import type { NextParsedUrlQuery, NextUrlWithParsedQuery } from '../request-meta';
import type { DevBundlerService } from '../lib/dev-bundler-service';
import type { IncrementalCache } from '../lib/incremental-cache';
import type { NodeNextResponse, NodeNextRequest } from '../base-http/node';
import type { PagesManifest } from '../../build/webpack/plugins/pages-manifest-plugin';
import Server from '../next-server';
import { type Span } from '../../trace';
export interface Options extends ServerOptions {
/**
* Tells of Next.js is running from the `next dev` command
@@ -51,7 +51,7 @@ export default class DevServer extends Server {
protected staticPathsWorker?: {
[key: string]: any;
} & {
loadStaticPaths: typeof import('next/dist/server/dev/static-paths-worker').loadStaticPaths;
loadStaticPaths: typeof import('./static-paths-worker').loadStaticPaths;
};
private getStaticPathsWorker;
constructor(options: Options);
@@ -66,7 +66,7 @@ export default class DevServer extends Server {
parsedUrl: ParsedUrl;
parsed: UrlWithParsedQuery;
middlewareList: MiddlewareRoutingItem[];
}): Promise<import("next/dist/server/web/types").FetchEventResult | {
}): Promise<import("../web/types").FetchEventResult | {
finished: boolean;
}>;
runEdgeFunction(params: {
@@ -77,7 +77,7 @@ export default class DevServer extends Server {
page: string;
appPaths: string[] | null;
isAppPath: boolean;
}): Promise<import("next/dist/server/web/types").FetchEventResult | null>;
}): Promise<import("../web/types").FetchEventResult | null>;
handleRequest(req: BaseNextRequest, res: BaseNextResponse, parsedUrl?: NextUrlWithParsedQuery): Promise<void>;
run(req: NodeNextRequest, res: NodeNextResponse, parsedUrl: UrlWithParsedQuery): Promise<void>;
protected logErrorWithOriginalStack(err?: unknown, type?: 'unhandledRejection' | 'uncaughtException' | 'warning' | 'app-dir'): Promise<void>;

View File

@@ -1,7 +1,7 @@
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import 'next/dist/server/require-hook';
import 'next/dist/server/node-environment';
import type { IncrementalCache } from 'next/dist/server/lib/incremental-cache';
import type { NextConfigComplete } from '../config-shared';
import '../require-hook';
import '../node-environment';
import type { IncrementalCache } from '../lib/incremental-cache';
type RuntimeConfig = {
configFileName: string;
publicRuntimeConfig: {

View File

@@ -1,5 +1,5 @@
import type { DomainLocale, I18NConfig } from 'next/dist/server/config-shared';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { DomainLocale, I18NConfig } from '../../config-shared';
import type { NextParsedUrlQuery } from '../../request-meta';
/**
* The result of matching a locale aware route.
*/

View File

@@ -1,5 +1,5 @@
import type { I18NProvider } from 'next/dist/server/future/helpers/i18n-provider';
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { I18NProvider } from '../helpers/i18n-provider';
import type { Normalizer } from './normalizer';
/**
* Normalizes the pathname by removing the locale prefix if any.
*/

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class ActionPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import type { PathnameNormalizer } from './pathname-normalizer';
export declare class NextDataPathnameNormalizer implements PathnameNormalizer {
private readonly prefix;
private readonly suffix;

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export interface PathnameNormalizer extends Normalizer {
match(pathname: string): boolean;
normalize(pathname: string, matched?: boolean): string;

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { PrefixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/prefix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { PrefixPathnameNormalizer } from './prefix';
export declare class PostponedPathnameNormalizer extends PrefixPathnameNormalizer implements PathnameNormalizer {
constructor();
normalize(pathname: string, matched?: boolean): string;

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class PrefetchRSCPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export declare class PrefixPathnameNormalizer implements Normalizer {
private readonly prefix;
constructor(prefix: string);

View File

@@ -1,5 +1,5 @@
import type { PathnameNormalizer } from 'next/dist/server/future/normalizers/request/pathname-normalizer';
import { SuffixPathnameNormalizer } from 'next/dist/server/future/normalizers/request/suffix';
import type { PathnameNormalizer } from './pathname-normalizer';
import { SuffixPathnameNormalizer } from './suffix';
export declare class RSCPathnameNormalizer extends SuffixPathnameNormalizer implements PathnameNormalizer {
constructor();
}

View File

@@ -1,4 +1,4 @@
import type { Normalizer } from 'next/dist/server/future/normalizers/normalizer';
import type { Normalizer } from '../normalizer';
export declare class SuffixPathnameNormalizer implements Normalizer {
private readonly suffix;
constructor(suffix: string);

View File

@@ -1,5 +1,5 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteDefinition } from './route-definition';
import { RouteKind } from '../route-kind';
export interface AppPageRouteDefinition extends RouteDefinition<RouteKind.APP_PAGE> {
readonly appPaths: ReadonlyArray<string>;
}

View File

@@ -1,5 +1,5 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteDefinition } from './route-definition';
import type { RouteKind } from '../route-kind';
export interface LocaleRouteDefinition<K extends RouteKind = RouteKind> extends RouteDefinition<K> {
/**
* When defined it means that this route is locale aware. When undefined,

View File

@@ -1,4 +1,4 @@
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { LocaleRouteDefinition } from 'next/dist/server/future/route-definitions/locale-route-definition';
import type { RouteKind } from '../route-kind';
import type { LocaleRouteDefinition } from './locale-route-definition';
export interface PagesAPIRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES_API> {
}

View File

@@ -1,4 +1,4 @@
import type { LocaleRouteDefinition } from 'next/dist/server/future/route-definitions/locale-route-definition';
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { LocaleRouteDefinition } from './locale-route-definition';
import type { RouteKind } from '../route-kind';
export interface PagesRouteDefinition extends LocaleRouteDefinition<RouteKind.PAGES> {
}

View File

@@ -1,4 +1,4 @@
import type { RouteKind } from 'next/dist/server/future/route-kind';
import type { RouteKind } from '../route-kind';
export interface RouteDefinition<K extends RouteKind = RouteKind> {
readonly kind: K;
readonly bundlePath: string;

View File

@@ -1,6 +1,6 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { RouteMatcherProvider } from 'next/dist/server/future/route-matcher-providers/route-matcher-provider';
import type { LocaleAnalysisResult } from 'next/dist/server/future/helpers/i18n-provider';
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteMatcherProvider } from '../route-matcher-providers/route-matcher-provider';
import type { LocaleAnalysisResult } from '../helpers/i18n-provider';
export type MatchOptions = {
skipDynamic?: boolean;
/**

View File

@@ -1,4 +1,4 @@
import type { RouteMatcher } from 'next/dist/server/future/route-matchers/route-matcher';
import type { RouteMatcher } from '../route-matchers/route-matcher';
export interface RouteMatcherProvider<M extends RouteMatcher = RouteMatcher> {
matchers(): Promise<ReadonlyArray<M>>;
}

View File

@@ -1,5 +1,5 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteMatch } from '../route-matches/route-match';
import type { RouteDefinition } from '../route-definitions/route-definition';
type RouteMatchResult = {
params?: Record<string, string | string[]>;
};

View File

@@ -1,5 +1,5 @@
import type { RouteMatch } from 'next/dist/server/future/route-matches/route-match';
import type { PagesAPIRouteDefinition } from 'next/dist/server/future/route-definitions/pages-api-route-definition';
import type { RouteMatch } from './route-match';
import type { PagesAPIRouteDefinition } from '../route-definitions/pages-api-route-definition';
export interface PagesAPIRouteMatch extends RouteMatch<PagesAPIRouteDefinition> {
}
/**

View File

@@ -1,4 +1,4 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteDefinition } from '../route-definitions/route-definition';
/**
* RouteMatch is the resolved match for a given request. This will contain all
* the dynamic parameters used for this route.

View File

@@ -1 +1 @@
export * from 'next/dist/server/future/route-modules/app-page/module'
export * from './module'

View File

@@ -1,18 +1,18 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { AppPageRouteDefinition } from 'next/dist/server/future/route-definitions/app-page-route-definition';
import type RenderResult from 'next/dist/server/render-result';
import type { RenderOpts } from 'next/dist/server/app-render/types';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { LoaderTree } from 'next/dist/server/lib/app-dir-module';
import { renderToHTMLOrFlight } from 'next/dist/server/app-render/app-render';
import { RouteModule, type RouteModuleOptions, type RouteModuleHandleContext } from 'next/dist/server/future/route-modules/route-module';
import * as vendoredContexts from 'next/dist/server/future/route-modules/app-page/vendored/contexts/entrypoints';
import type { AppPageRouteDefinition } from '../../route-definitions/app-page-route-definition';
import type RenderResult from '../../../render-result';
import type { RenderOpts } from '../../../app-render/types';
import type { NextParsedUrlQuery } from '../../../request-meta';
import type { LoaderTree } from '../../../lib/app-dir-module';
import { renderToHTMLOrFlight } from '../../../app-render/app-render';
import { RouteModule, type RouteModuleOptions, type RouteModuleHandleContext } from '../route-module';
import * as vendoredContexts from './vendored/contexts/entrypoints';
/**
* The AppPageModule is the type of the module exported by the bundled app page
* module.
*/
export type AppPageModule = typeof import('next/dist/build/templates/app-page');
export type AppPageModule = typeof import('../../../../build/templates/app-page');
type AppPageUserlandModule = {
/**
* The tree created in next-app-loader that holds component segments and modules

View File

@@ -1,10 +1,10 @@
export * as HeadManagerContext from 'next/dist/shared/lib/head-manager-context.shared-runtime';
export * as ServerInsertedHtml from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
export * as AppRouterContext from 'next/dist/shared/lib/app-router-context.shared-runtime';
export * as HooksClientContext from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
export * as RouterContext from 'next/dist/shared/lib/router-context.shared-runtime';
export * as HtmlContext from 'next/dist/shared/lib/html-context.shared-runtime';
export * as AmpContext from 'next/dist/shared/lib/amp-context.shared-runtime';
export * as LoadableContext from 'next/dist/shared/lib/loadable-context.shared-runtime';
export * as ImageConfigContext from 'next/dist/shared/lib/image-config-context.shared-runtime';
export * as Loadable from 'next/dist/shared/lib/loadable.shared-runtime';
export * as HeadManagerContext from '../../../../../../shared/lib/head-manager-context.shared-runtime';
export * as ServerInsertedHtml from '../../../../../../shared/lib/server-inserted-html.shared-runtime';
export * as AppRouterContext from '../../../../../../shared/lib/app-router-context.shared-runtime';
export * as HooksClientContext from '../../../../../../shared/lib/hooks-client-context.shared-runtime';
export * as RouterContext from '../../../../../../shared/lib/router-context.shared-runtime';
export * as HtmlContext from '../../../../../../shared/lib/html-context.shared-runtime';
export * as AmpContext from '../../../../../../shared/lib/amp-context.shared-runtime';
export * as LoadableContext from '../../../../../../shared/lib/loadable-context.shared-runtime';
export * as ImageConfigContext from '../../../../../../shared/lib/image-config-context.shared-runtime';
export * as Loadable from '../../../../../../shared/lib/loadable.shared-runtime';

View File

@@ -1 +1 @@
export * from 'next/dist/server/future/route-modules/pages/module'
export * from './module'

View File

@@ -1,19 +1,19 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import type { GetServerSideProps, GetStaticPaths, GetStaticProps, NextComponentType, PageConfig } from 'next/types';
import type { PagesRouteDefinition } from 'next/dist/server/future/route-definitions/pages-route-definition';
import type { NextParsedUrlQuery } from 'next/dist/server/request-meta';
import type { RenderOpts } from 'next/dist/server/render';
import type RenderResult from 'next/dist/server/render-result';
import type { AppType, DocumentType } from 'next/dist/shared/lib/utils';
import { RouteModule, type RouteModuleHandleContext, type RouteModuleOptions } from 'next/dist/server/future/route-modules/route-module';
import { renderToHTML } from 'next/dist/server/render';
import * as vendoredContexts from 'next/dist/server/future/route-modules/pages/vendored/contexts/entrypoints';
import type { GetServerSideProps, GetStaticPaths, GetStaticProps, NextComponentType, PageConfig } from '../../../../../types';
import type { PagesRouteDefinition } from '../../route-definitions/pages-route-definition';
import type { NextParsedUrlQuery } from '../../../request-meta';
import type { RenderOpts } from '../../../render';
import type RenderResult from '../../../render-result';
import type { AppType, DocumentType } from '../../../../shared/lib/utils';
import { RouteModule, type RouteModuleHandleContext, type RouteModuleOptions } from '../route-module';
import { renderToHTML } from '../../../render';
import * as vendoredContexts from './vendored/contexts/entrypoints';
/**
* The PagesModule is the type of the module exported by the bundled pages
* module.
*/
export type PagesModule = typeof import('next/dist/build/templates/pages');
export type PagesModule = typeof import('../../../../build/templates/pages');
/**
* The userland module for a page. This is the module that is exported from the
* page file that contains the page component, page config, and any page data

View File

@@ -1,10 +1,10 @@
export * as RouterContext from 'next/dist/shared/lib/router-context.shared-runtime';
export * as LoadableContext from 'next/dist/shared/lib/loadable-context.shared-runtime';
export * as Loadable from 'next/dist/shared/lib/loadable.shared-runtime';
export * as ImageConfigContext from 'next/dist/shared/lib/image-config-context.shared-runtime';
export * as HtmlContext from 'next/dist/shared/lib/html-context.shared-runtime';
export * as HooksClientContext from 'next/dist/shared/lib/hooks-client-context.shared-runtime';
export * as HeadManagerContext from 'next/dist/shared/lib/head-manager-context.shared-runtime';
export * as AppRouterContext from 'next/dist/shared/lib/app-router-context.shared-runtime';
export * as AmpContext from 'next/dist/shared/lib/amp-context.shared-runtime';
export * as ServerInsertedHtml from 'next/dist/shared/lib/server-inserted-html.shared-runtime';
export * as RouterContext from '../../../../../../shared/lib/router-context.shared-runtime';
export * as LoadableContext from '../../../../../../shared/lib/loadable-context.shared-runtime';
export * as Loadable from '../../../../../../shared/lib/loadable.shared-runtime';
export * as ImageConfigContext from '../../../../../../shared/lib/image-config-context.shared-runtime';
export * as HtmlContext from '../../../../../../shared/lib/html-context.shared-runtime';
export * as HooksClientContext from '../../../../../../shared/lib/hooks-client-context.shared-runtime';
export * as HeadManagerContext from '../../../../../../shared/lib/head-manager-context.shared-runtime';
export * as AppRouterContext from '../../../../../../shared/lib/app-router-context.shared-runtime';
export * as AmpContext from '../../../../../../shared/lib/amp-context.shared-runtime';
export * as ServerInsertedHtml from '../../../../../../shared/lib/server-inserted-html.shared-runtime';

View File

@@ -1,4 +1,4 @@
import type { RouteDefinition } from 'next/dist/server/future/route-definitions/route-definition';
import type { RouteDefinition } from '../route-definitions/route-definition';
/**
* RouteModuleOptions is the options that are passed to the route module, other
* route modules should extend this class to add specific options for their

View File

@@ -3,10 +3,10 @@
/// <reference types="node" />
import type { IncomingMessage, ServerResponse } from 'http';
import { type UrlWithParsedQuery } from 'url';
import type { ImageConfigComplete } from 'next/dist/shared/lib/image-config';
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { NextUrlWithParsedQuery } from 'next/dist/server/request-meta';
import type { IncrementalCacheEntry, IncrementalCacheValue } from 'next/dist/server/response-cache';
import type { ImageConfigComplete } from '../shared/lib/image-config';
import type { NextConfigComplete } from './config-shared';
import type { NextUrlWithParsedQuery } from './request-meta';
import type { IncrementalCacheEntry, IncrementalCacheValue } from './response-cache';
type XCacheHeader = 'MISS' | 'HIT' | 'STALE';
export interface ImageParamsResult {
href: string;

View File

@@ -1,4 +1,4 @@
import type { ComponentsType } from 'next/dist/build/webpack/loaders/next-app-loader';
import type { ComponentsType } from '../../build/webpack/loaders/next-app-loader';
/**
* LoaderTree is generated in next-app-loader.
*/

View File

@@ -1,7 +1,7 @@
/// <reference types="node" />
import type { IncomingMessage } from 'http';
import type { DevBundler } from 'next/dist/server/lib/router-utils/setup-dev-bundler';
import type { WorkerRequestHandler } from 'next/dist/server/lib/types';
import type { DevBundler } from './router-utils/setup-dev-bundler';
import type { WorkerRequestHandler } from './types';
/**
* The DevBundlerService provides an interface to perform tasks with the
* bundler while in development.

View File

@@ -1,7 +1,7 @@
import type { CacheFs } from 'next/dist/shared/lib/utils';
import type { PrerenderManifest } from 'next/dist/build';
import type { IncrementalCacheValue, IncrementalCacheEntry, IncrementalCache as IncrementalCacheType, IncrementalCacheKindHint } from 'next/dist/server/response-cache';
import type { DeepReadonly } from 'next/dist/shared/lib/deep-readonly';
import type { CacheFs } from '../../../shared/lib/utils';
import type { PrerenderManifest } from '../../../build';
import type { IncrementalCacheValue, IncrementalCacheEntry, IncrementalCache as IncrementalCacheType, IncrementalCacheKindHint } from '../../response-cache';
import type { DeepReadonly } from '../../../shared/lib/deep-readonly';
export interface CacheHandlerContext {
fs?: CacheFs;
dev?: boolean;

View File

@@ -1,7 +1,7 @@
import type { NextServer, RequestHandler } from 'next/dist/server/next';
import type { DevBundlerService } from 'next/dist/server/lib/dev-bundler-service';
import type { PropagateToWorkersField } from 'next/dist/server/lib/router-utils/types';
import type { Span } from 'next/dist/trace';
import type { NextServer, RequestHandler } from '../next';
import type { DevBundlerService } from './dev-bundler-service';
import type { PropagateToWorkersField } from './router-utils/types';
import type { Span } from '../../trace';
export declare function clearAllModuleContexts(): Promise<void> | undefined;
export declare function clearModuleContext(target: string): Promise<void> | undefined;
export declare function deleteAppClientCache(): void | undefined;

View File

@@ -1,9 +1,9 @@
import type { WorkerRequestHandler, WorkerUpgradeHandler } from 'next/dist/server/lib/types';
import type { NextServer } from 'next/dist/server/next';
import 'next/dist/server/node-environment';
import 'next/dist/server/require-hook';
import { type Span } from 'next/dist/trace';
export type RenderServer = Pick<typeof import('next/dist/server/lib/render-server'), 'initialize' | 'deleteCache' | 'clearModuleContext' | 'deleteAppClientCache' | 'propagateServerField'>;
import type { WorkerRequestHandler, WorkerUpgradeHandler } from './types';
import type { NextServer } from '../next';
import '../node-environment';
import '../require-hook';
import { type Span } from '../../trace';
export type RenderServer = Pick<typeof import('./render-server'), 'initialize' | 'deleteCache' | 'clearModuleContext' | 'deleteAppClientCache' | 'propagateServerField'>;
export interface LazyRenderServerInstance {
instance?: RenderServer;
}

View File

@@ -1,8 +1,8 @@
import type { ManifestRoute, PrerenderManifest } from 'next/dist/build';
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { PatchMatcher } from 'next/dist/shared/lib/router/utils/path-match';
import type { MiddlewareRouteMatch } from 'next/dist/shared/lib/router/utils/middleware-route-matcher';
import { type Rewrite } from 'next/dist/lib/load-custom-routes';
import type { ManifestRoute, PrerenderManifest } from '../../../build';
import type { NextConfigComplete } from '../../config-shared';
import type { PatchMatcher } from '../../../shared/lib/router/utils/path-match';
import type { MiddlewareRouteMatch } from '../../../shared/lib/router/utils/middleware-route-matcher';
import { type Rewrite } from '../../../lib/load-custom-routes';
export type FsOutput = {
type: 'appFile' | 'pageFile' | 'nextImage' | 'publicFolder' | 'nextStaticFolder' | 'legacyStaticFolder' | 'devVirtualFsItem';
itemPath: string;
@@ -31,7 +31,7 @@ export declare function setupFsCheck(opts: {
timestamp: number;
}>) => void) => void;
}): Promise<{
headers: (import("next/dist/lib/load-custom-routes").Header & {
headers: (import("../../../lib/load-custom-routes").Header & {
match: PatchMatcher;
check?: boolean | undefined;
})[];
@@ -49,7 +49,7 @@ export declare function setupFsCheck(opts: {
check?: boolean | undefined;
})[];
};
redirects: (import("next/dist/lib/load-custom-routes").Redirect & {
redirects: (import("../../../lib/load-custom-routes").Redirect & {
match: PatchMatcher;
check?: boolean | undefined;
})[];

View File

@@ -1,13 +1,13 @@
/// <reference types="node" />
import type { NextConfigComplete } from 'next/dist/server/config-shared';
import type { UnwrapPromise } from 'next/dist/lib/coalesced-function';
import type { MiddlewareMatcher } from 'next/dist/build/analysis/get-page-static-info';
import type { MiddlewareRouteMatch } from 'next/dist/shared/lib/router/utils/middleware-route-matcher';
import type { PropagateToWorkersField } from 'next/dist/server/lib/router-utils/types';
import type { NextJsHotReloaderInterface } from 'next/dist/server/dev/hot-reloader-types';
import type { Telemetry } from 'next/dist/telemetry/storage';
import type { NextConfigComplete } from '../../config-shared';
import type { UnwrapPromise } from '../../../lib/coalesced-function';
import type { MiddlewareMatcher } from '../../../build/analysis/get-page-static-info';
import type { MiddlewareRouteMatch } from '../../../shared/lib/router/utils/middleware-route-matcher';
import type { PropagateToWorkersField } from './types';
import type { NextJsHotReloaderInterface } from '../../dev/hot-reloader-types';
import type { Telemetry } from '../../../telemetry/storage';
import type { IncomingMessage, ServerResponse } from 'http';
import type { LazyRenderServerInstance } from 'next/dist/server/lib/router-server';
import type { LazyRenderServerInstance } from '../router-server';
export type SetupOpts = {
renderServer: LazyRenderServerInstance;
dir: string;
@@ -16,7 +16,7 @@ export type SetupOpts = {
pagesDir?: string;
telemetry: Telemetry;
isCustomServer?: boolean;
fsChecker: UnwrapPromise<ReturnType<typeof import('next/dist/server/lib/router-utils/filesystem').setupFsCheck>>;
fsChecker: UnwrapPromise<ReturnType<typeof import('./filesystem').setupFsCheck>>;
nextConfig: NextConfigComplete;
port: number;
};
@@ -30,7 +30,7 @@ export type ServerFields = {
matchers?: MiddlewareMatcher[];
} | undefined;
hasAppNotFound?: boolean;
interceptionRoutes?: ReturnType<typeof import('next/dist/server/lib/router-utils/filesystem').buildCustomRoute>[];
interceptionRoutes?: ReturnType<typeof import('./filesystem').buildCustomRoute>[];
};
export declare function propagateServerField(opts: SetupOpts, field: PropagateToWorkersField, args: any): Promise<void>;
export declare function setupDevBundler(opts: SetupOpts): Promise<{

Some files were not shown because too many files have changed in this diff Show More