mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* ported next lib to next-server * lint fixes * updated exports from next-server * added maintainers from next to next-server * removed deprecations from next-server * added return value `false` to ServerRoute.match * fixed formatting
24 lines
653 B
TypeScript
24 lines
653 B
TypeScript
/**
|
|
* Next.js config schema.
|
|
* https://github.com/zeit/next.js/blob/7.0.0/server/config.js#L9
|
|
*/
|
|
export interface NextConfig {
|
|
webpack?: any;
|
|
webpackDevMiddleware?: any;
|
|
poweredByHeader?: boolean;
|
|
distDir?: string;
|
|
assetPrefix?: string;
|
|
configOrigin?: string;
|
|
useFileSystemPublicRoutes?: boolean;
|
|
generateBuildId?: () => string;
|
|
generateEtags?: boolean;
|
|
pageExtensions?: string[];
|
|
publicRuntimeConfig?: object;
|
|
serverRuntimeConfig?: object;
|
|
|
|
// Plugin can define their own keys.
|
|
[key: string]: any;
|
|
}
|
|
|
|
export default function(phase: string, dir: string, customConfig?: NextConfig): NextConfig;
|