stax-monorepo
    Preparing search index...

    Interface SsrEntryContext

    Context the plugin hands to an adapter at build time when asking it to synthesize the SSR entry module.

    interface SsrEntryContext {
        appModuleId: string;
        clientRelativeDir: string;
        scripts: readonly string[];
        styles: readonly string[];
    }
    Index
    appModuleId: string

    The import specifier the adapter should use to pull in the user's app module. This is a resolved specifier Vite will handle during the SSR build — adapters embed it as import * as userApp from "<ctx.appModuleId>".

    clientRelativeDir: string

    Absolute path (resolved at runtime via import.meta.url) under which the client bundle lives, relative to the generated SSR entry. Adapters that serve static files set this up for serveStatic or equivalent.

    scripts: readonly string[]

    Prod-shape URL(s) for the client script, to be passed to makeApp({ scripts: ... }) by the generated entry.

    styles: readonly string[]

    Prod-shape URL(s) for stylesheets, to be passed to makeApp({ styles: ... }) by the generated entry.