[]previous and next page

dusk() options

dusk() options in the Dusk guide.

For agentsUpdated

All options are optional. An unknown name throws a TypeError that suggests the closest known one.

Option Default Meaning
srcDir "src" Source folder, relative to the project root
outDir "dist" Build output folder; client/ and server/ go below it
router.routesDir <srcDir>/routes Where routes live
router.generatedTree <srcDir>/routeTree.gen.ts Where the route tree is written
router.caseSensitive false Static segments compare ASCII case exactly
router.reservedPrefixes ["/_dusk"] URL prefixes no route may use
router.split true Split route modules into a data half and a lazy UI half in client bundles
importProtection {} { server, client, ignore } globs, or false to turn the check off
prerender {} { routes, origin, concurrency, failOnError }, or false; see Deploy
maxPreloadsPerRoute 24 Preload entries per route in the manifest
buildId hash of the client assets Id baked into dusk-manifest.json
shadow {} Options of the ShadowJS compiler plugin

The reference page of dusk has the plugin list and the project conventions.