Skip to content

Configuration reference

Paths are under apps/cosmos/digital-services/ unless noted.

FileScopeEffect if changed
astro.config.mjsAppSite URL, integrations (React, Tailwind, sitemap), image service, Vite aliases, build output layout.
package.jsonAppCanonical commands: dev, build, lint, Jest, Playwright, worker build/deploy. Wrangler [build] command in TOML still references npm run build—from the monorepo, prefer yarn workspace cosmos-digital-services build.
tailwind.config.jsAppUtility classes and design tokens pipeline into global.css / generated CSS.
playwright.config.tsTestsE2E base URL, webServer hook, projects, timeouts.
jest.config.cjsTestsUnit test environment, transforms, module maps.
babel.config.jsonTests/buildJest/Babel TS handling for tests.
.eslintrc.cjsQualityLint rules for .js, .ts, .astro.
FileScopeEffect if changed
public/_headersDeployed static layerCSP, cache-control, /api/* CORS, security headers. Changes apply without any .astro edit—treat as production-critical.
public/_redirectsStaticRedirect rules for the static host/worker site.
FileScopeEffect if changed
workers/wrangler.gateway.tomlGatewayRoutes for /api/*, /portal*, /admin*; AUTH_WORKER_VERIFY_URL and PROTECTED_PATH_PREFIXES per environment; site bucket path; build command. Wrong routes → session returns HTML, auth bypass, or broken portal.
workers/wrangler.image.tomlImage workerImage route patterns per host/env; ENABLE_IMAGE_RESIZING. Missing extension → optimizer never runs.

Any change to _headers, worker routes, or Wrangler vars can alter production behavior without an Astro component diff. Pair those changes with deploy verification (see Deployment guide and Troubleshooting).