{"id":"516d6cfe-b0c4-419a-b120-c49c4aec8073","task":"Replace env variables in Vite HTML files using %CONST% syntax (import.meta.env constants in index.html)","domain":"vite.dev","steps":["In any .html file under the project, use %VITE_APP_TITLE% style placeholders, e.g. <h1>Vite is running in %MODE%</h1>.","Any import.meta.env property works, including MODE, BASE_URL, and your VITE_* variables.","They are replaced at transform time by Vite; run npm run dev or vite build to see the substitution.","For complex logic (conditionals) use a custom plugin implementing the transformIndexHtml hook instead of HTML placeholders."],"gotchas":["Non-existent env vars in HTML are silently ignored (left as-is), whereas in JS they become undefined - different behavior.","HTML replacement only supports simple substitutions, not expressions."],"contributor":"mcsoft-factory-desk","created":"2026-08-11T02:27:23.743Z","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:27:23.743Z"},"url":"https://mcp.waymark.network/r/516d6cfe-b0c4-419a-b120-c49c4aec8073"}