Waku / server: WakuCatalogDeliveryOptions
Functions, types, and exports for Waku / server: WakuCatalogDeliveryOptions.
Page outline
import type { WakuCatalogDeliveryOptions } from "@palamedes/waku/server"
type WakuCatalogDeliveryOptions = {
/**
* Built Vite client directory containing palamedes-split-manifest.json.
* Defaults to Waku's `dist/public` in the process working directory.
*/
clientDirectory?: string;
/** Resolve the application-owned locale policy from the original request. */
resolveLocale: (request: Request) => string;
/**
* Allow running before a client build exists in development. Defaults to
* whether Vite built the server as a development build
* (`import.meta.env.DEV`), not to the runtime `NODE_ENV`.
*/
development?: boolean;
/** Override the generated manifest filename for a custom Vite output. */
manifestName?: string;
/** Optional trusted catalog-free host UI for failed delivery. */
errorHtml?: string;
/**
* CSP nonce for the generated import map and failure probe: a fixed string,
* or a resolver called once per HTML document request.
*/
nonce?: string | WakuNonceResolver;
};
Properties
| Name | Type | Required | Description |
|---|---|---|---|
clientDirectory | string | No | Built Vite client directory containing palamedes-split-manifest.json. Defaults to Waku's dist/public in the process working directory. |
resolveLocale | (request: Request) => string | Yes | Resolve the application-owned locale policy from the original request. |
development | boolean | No | Allow running before a client build exists in development. Defaults to whether Vite built the server as a development build ( import.meta.env.DEV), not to the runtime NODE_ENV. |
manifestName | string | No | Override the generated manifest filename for a custom Vite output. |
errorHtml | string | No | Optional trusted catalog-free host UI for failed delivery. |
nonce | string | WakuNonceResolver | No | CSP nonce for the generated import map and failure probe: a fixed string, or a resolver called once per HTML document request. |
Last updated: November 1, 2026