Member Junction
    Preparing search index...

    Type Alias MJServerOptions

    type MJServerOptions = {
        onBeforeServe?: () => void | Promise<void>;
        restApiOptions?: Partial<RESTApiOptions>;
        serverExtensions?: ServerExtensionConfig[];
    }
    Index

    Properties

    onBeforeServe?: () => void | Promise<void>

    Runs at the end of the bootstrap, before any request reaches the app. The port is already bound by then (Serve binds it first), but until this returns every request is answered by the startup gate (503, or the health endpoints), never by the app.

    restApiOptions?: Partial<RESTApiOptions>
    serverExtensions?: ServerExtensionConfig[]

    Server-extension configs discovered from installed Open App server packages (dynamicPackages.server[]). Merged with host mj.config.cjs serverExtensions[] at load time — host DriverClass wins. Omit (or pass []) for host-only loading, which is the historical serve() behavior.