votingworks / vxsuite

https://voting.works
30 stars 5 forks source link

replace `process.env.*` with `import.meta.env.*` #1907

Open eventualbuddha opened 2 years ago

eventualbuddha commented 2 years ago

_from a comment by @jonahkagan in https://github.com/votingworks/vxsuite/pull/1906#discussion_r887183934_

carolinemodic commented 2 years ago

@eventualbuddha @jonahkagan I'm not sure what this task means can you explain why its important to help me prioritize appropriately?

eventualbuddha commented 2 years ago

Vite uses import.meta.env for environment variables rather than process.env. I made the latter work for the sake of easing the transition, but we should fully migrate over.