DefinitelyTyped/types/next-server/next-config.d.ts
AJ Livingston 67d82a3999 Add @types/next-server / port @types/next lib (#29724)
* 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
2018-10-16 10:13:11 -07:00

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;