BuildConfig constructor

const BuildConfig({
  1. required String rootDir,
  2. String host = '0.0.0.0',
  3. int port = 3000,
  4. BuildTarget target = BuildTarget.vm,
  5. String routesDir = 'routes',
  6. String middlewareDir = 'middleware',
  7. String publicDir = 'public',
  8. String outputDir = '.spry',
  9. bool caseSensitive = true,
  10. int? handlerCacheCapacity,
  11. ReloadStrategy reload = ReloadStrategy.restart,
  12. String? wranglerConfig,
  13. OpenAPIConfig? openapi,
  14. ClientConfig? client,
})

Creates a build configuration.

Implementation

const BuildConfig({
  required this.rootDir,
  this.host = '0.0.0.0',
  this.port = 3000,
  this.target = BuildTarget.vm,
  this.routesDir = 'routes',
  this.middlewareDir = 'middleware',
  this.publicDir = 'public',
  this.outputDir = '.spry',
  this.caseSensitive = true,
  this.handlerCacheCapacity,
  this.reload = ReloadStrategy.restart,
  this.wranglerConfig,
  this.openapi,
  this.client,
}) : assert(
       handlerCacheCapacity == null || handlerCacheCapacity > 0,
       'handlerCacheCapacity must be a positive integer or null',
     );