bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 58 forks source link

Create UI - Change VUE_APP_ to VITE_ Cleanup #17334

Open JazzarKarim opened 1 year ago

JazzarKarim commented 1 year ago

The Vue-CLI to Vite migration guide recommends changing environment variable names.

As it stands, the environment variables have a prefix of VUE_APP_ instead of VITE_. This was achieved by adding a prefix change in the vite.config.js file. Usually, import.meta.env only works with the VITE prefix. It is advised when working with Vite, to change everything to VITE (from Migration guides).

That won't work currently since there are some Devops code related to vaults. This ticket might need Patrick's help with some configs.

Need to handle:

severinbeauvais commented 1 year ago

@pwei1018 For you info and help, please and thanks.