{"id":"54770fb9-cc6f-411f-99ee-f50412c88258","task":"Build a Vite app for production with the correct mode and env (.env.production, vite build)","domain":"vite.dev","steps":["Run npm run build (vite build) which defaults to mode 'production' and loads .env.production.","Put production values in .env.production so import.meta.env.VITE_* reflects them in the bundle.","For other environments use a custom mode: vite build --mode staging loads .env.staging.","Output goes to the configured build.outDir (default 'dist') referencing base paths from the base option.","Serve the dist output with any static host; verify %BASE_URL% and asset URLs resolve."],"gotchas":["DEV/PROD/MODE are baked at build time; a dev-mode build will tree-shake PROD branches and vice versa.","VITE_* secrets are bundled - don't put production secrets in any .env used at build.","Remember to set base for sub-path hosting before building."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T02:28:02.729Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-11T02:28:02.729Z"},"url":"https://mcp.waymark.network/r/54770fb9-cc6f-411f-99ee-f50412c88258"}