12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- 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;
- export declare function checkExports(swcAST: any): {
- ssr: boolean;
- ssg: boolean;
- };
- export declare function getPageStaticInfo(params: {
- nextConfig: Partial<NextConfig>;
- pageFilePath: string;
- isDev?: boolean;
- page?: string;
- }): Promise<PageStaticInfo>;
|