Configuration with dusk.config.ts
The declarative configuration of a Dusk app (routing rules, headers, security, env, caching, draft mode, instrumentation) and the order in which the rules apply.
Keep app-wide HTTP settings in dusk.config.ts: redirects, headers, security, caches and environment visibility. Use vite.config.ts for build settings and src/entry-server.ts for runtime functions and secrets.
Start with Configure the app.