function

createAdminApplicationConfig

function createAdminApplicationConfig( options: AdminApplicationConfigOptions, ): UserConfigFnObject

Create the Vite config for a routed Ridu admin application.

Source packages/build/src/index.ts:3

@param options
The options value.
@returns
The declared result.

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

ts
export default createAdminApplicationConfig({
  outDir: "../internal/adminassets/dist",
  schemaReloadSignal: "../.ridu/admin-schema.reload",
  proxyTarget: process.env.RIDU_DEV_API,
});

Related types