GitHub image
next
⌘K
Default Export
Named Exports
3
/
Exports

Default Export

default
Docs
Import
Tests
3
References
2
function default(options: Partial<Options>): NextServer
Classes
1
NextServer
Docs
Import
Tests
3
References
2
class NextServer {
constructor(options: Partial<Options>): NextServer
options: Partial<Options>
hostname: string
port: number
getRequestHandler: () => RequestHandler
setAssetPrefix: (assetPrefix: string) => void
logError: (args: [Error]) => void
render: (args: [any, any, string, any, NextUrlWithParsedQuery]) => Promise<void>
renderToHTML: (args: [any, any, string, any]) => Promise<string>
renderError: (args: [Error, any, any, string, any, boolean]) => Promise<void>
renderErrorToHTML: (args: [Error, any, any, string, any]) => Promise<string>
render404: (args: [any, any, NextUrlWithParsedQuery, boolean]) => Promise<void>
serveStatic: (args: [any, any, string, any]) => Promise<void>
prepare: () => Promise<void>
close: () => Promise<any>
}
Type Aliases
1
NextServerOptions
Docs
Import
Tests
3
References
2
type Partial<T'> = Partial
Functions
1
RequestHandler
Docs
Import
Tests
3
References
2
interface RequestHandler {
}
Description
The React Framework
Install
yarn add next
Copy
Details
MIT License
22 Dependencies
Includes CLI
Native TypeScript Package
Metrics
Weekly Downloads
Keywords