create project
This commit is contained in:
37
kitabcitab/node_modules/next/dist/build/analysis/get-page-static-info.d.ts
generated
vendored
Normal file
37
kitabcitab/node_modules/next/dist/build/analysis/get-page-static-info.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { NextConfig } from '../../server/config-shared';
|
||||
import type { RouteHas } from '../../lib/load-custom-routes';
|
||||
import { ServerRuntime } from 'next/types';
|
||||
export interface MiddlewareConfig {
|
||||
matchers: MiddlewareMatcher[];
|
||||
unstable_allowDynamicGlobs: string[];
|
||||
regions: string[] | string;
|
||||
}
|
||||
export interface MiddlewareMatcher {
|
||||
regexp: string;
|
||||
locale?: false;
|
||||
has?: RouteHas[];
|
||||
missing?: RouteHas[];
|
||||
}
|
||||
export interface PageStaticInfo {
|
||||
runtime?: ServerRuntime;
|
||||
ssg?: boolean;
|
||||
ssr?: boolean;
|
||||
rsc?: RSCModuleType;
|
||||
middleware?: Partial<MiddlewareConfig>;
|
||||
}
|
||||
export declare type RSCModuleType = 'server' | 'client';
|
||||
export declare function getRSCModuleType(source: string): RSCModuleType;
|
||||
/**
|
||||
* For a given pageFilePath and nextConfig, if the config supports it, this
|
||||
* function will read the file and return the runtime that should be used.
|
||||
* It will look into the file content only if the page *requires* a runtime
|
||||
* to be specified, that is, when gSSP or gSP is used.
|
||||
* Related discussion: https://github.com/vercel/next.js/discussions/34179
|
||||
*/
|
||||
export declare function getPageStaticInfo(params: {
|
||||
nextConfig: Partial<NextConfig>;
|
||||
pageFilePath: string;
|
||||
isDev?: boolean;
|
||||
page?: string;
|
||||
pageType?: 'pages' | 'app';
|
||||
}): Promise<PageStaticInfo>;
|
||||
Reference in New Issue
Block a user