function
createAdminApplicationConfig
function createAdminApplicationConfig(
options: AdminApplicationConfigOptions,
): UserConfigFnObjectCreate the Vite config for a routed Ridu admin application.
Source packages/build/src/index.ts:3
Sets the canonical /admin/ base by default, Svelte runes, content-derived CSS hashes, UnoCSS, icons, collision-free application and framework source aliases, Svelte/Bits UI deduplication, schema-reload handling, and optional /api proxying.
Example
export default createAdminApplicationConfig({
outDir: "../internal/adminassets/dist",
schemaReloadSignal: "../.ridu/admin-schema.reload",
proxyTarget: process.env.RIDU_DEV_API,
});Related types
AdminApplicationConfigOptionsRequired output/reload paths plus focused Vite and Svelte overrides.