Optional ReadonlyafterCalled by the plugin after the SSR build completes. Lets the adapter run post-build work (e.g. SSG writing HTML files) when the synthesized entry can't do everything inside the SSR bundle itself. Optional — the Node adapter doesn't need this.
Optional ReadonlyclientBuild-time preferences for the CLIENT bundle step. See
ClientBuildOptions. Leave unset to accept the Node-adapter
defaults.
ReadonlynameShort identifier for logs and diagnostics, e.g. "node", "ssg".
ReadonlyssrSynthesize the SSR entry's module source. Returns a complete JavaScript module string the vite-plugin registers as a virtual entry module.
The returned module conventionally:
ctx.appModuleId to get
makeApp and optionally AppLayer;makeApp({ scripts: ctx.scripts, styles: ctx.styles });HttpApp with environment-specific bootstrap
(static file serving, HTTP server, serverless handler, etc.);userApp.AppLayer if present.
Describes a deploy target for a Stax app.
The adapter contributes code at build time via
ssrEntryModule, which returns a string of JavaScript the vite-plugin feeds into Vite's SSR build as the entry. The resulting bundle is self-contained and environment-specific (e.g. a Node HTTP server fornodeAdapter).