UNPKG

856 BTypeScriptView Raw
1import { __ApiPreviewProps } from '../next-server/server/api-utils';
2import { LoadedEnvFiles } from '@next/env';
3import { NextConfig } from '../next-server/server/config';
4declare type PagesMapping = {
5 [page: string]: string;
6};
7export declare function createPagesMapping(pagePaths: string[], extensions: string[]): PagesMapping;
8export declare type WebpackEntrypoints = {
9 [bundle: string]: string | string[] | {
10 import: string | string[];
11 dependOn?: string | string[];
12 };
13};
14declare type Entrypoints = {
15 client: WebpackEntrypoints;
16 server: WebpackEntrypoints;
17};
18export declare function createEntrypoints(pages: PagesMapping, target: 'server' | 'serverless' | 'experimental-serverless-trace', buildId: string, previewMode: __ApiPreviewProps, config: NextConfig, loadedEnvFiles: LoadedEnvFiles): Entrypoints;
19export {};