API Reference / @modelence/next / NextServer Defined in: index.ts:11 Next.js server implementation for Modelence applications. This class wraps Next.js to provide a compatible server interface for the Modelence framework.Documentation Index
Fetch the complete documentation index at: https://docs.modelence.com/llms.txt
Use this file to discover all available pages before exploring further.
Implements
AppServer
Constructors
Constructor
new NextServer(): NextServer
Returns
NextServer
Methods
handler()
handler(Defined in: index.ts:30 Handle incoming HTTP requests using Next.js.req,res):void
Parameters
| Parameter | Type | Description |
|---|---|---|
req | Request | Express request object |
res | Response | Express response object |
Returns
void
Implementation of
AppServer.handler
init()
init():Defined in: index.ts:17 Initialize the Next.js application and prepare the request handler.Promise<void>
Returns
Promise<void>
Implementation of
AppServer.init