Skip to main content

Type Alias: DebugServerOptions<US>

DebugServerOptions<US> = Omit<ServerOptions<US>, "staticAssets" | "buildInfo" | "domain"> & Partial<Pick<ServerOptions<US>, "domain">> & LiveReloadOptions & AppConfig & object

Defined in: cli/debug-server.ts:87

Options for the debug server, combining server options with live reload and app configuration.

Type Declaration

setup()?

optional setup: (server) => void | Promise<void>

Called after the server and database are initialized but before HTTP listening begins. Use this to access the GoatDB instance for server-side application logic (event handlers, background processes, custom endpoints).

Parameters

ParameterType
serverServer<US>

Returns

void | Promise<void>

Type Parameters

Type Parameter
US extends Schema