Ensure all runtime and project configuration is explicit, type-safe, and machine-independent.

Motivation

Rules (actionable)

  1. Use a typed env accessor and parse values with defaults

    const preferredPort = env.PORT ? parseInt(env.PORT, 10) : 5173

  2. Put feature flags and experimental toggles in project config

    export const LikeC4ProjectJsonConfigSchema = z.object({ // … experimental: LikeC4ExperimentalSchema.optional() })

  3. Normalize asset and file paths in generated/virtual modules

Checks to run

Why this helps