Mastra.getServer()
The .getServer() method is used to retrieve the server configuration that has been configured in the Mastra instance.
Usage exampleUsage example的直接链接
mastra.getServer()
ParametersParameters的直接链接
This method doesn't accept any parameters.
ReturnsReturns的直接链接
server:
ServerConfig | undefined
The configured server configuration including port, host, studioBase, timeout, API routes, middleware, CORS settings, and build options, or undefined if no server has been configured.