bulletproof-react
bulletproof-react copied to clipboard
env validation for react-vite
trafficstars
Package installed yarn add -D @julr/vite-plugin-validate-env
Modified files apps/react-vite -> vite.config.ts vite.config.ts
this is added in vite.config.ts ValidateEnv({ VITE_APP_API_URL: Schema.string(), VITE_APP_ENABLE_API_MOCKING: Schema.boolean(), }),
it will validate env during build
Deploy Preview for bulletproof-react-app ready!
| Name | Link |
|---|---|
| Latest commit | 4c52388e50c8a2a94b19325b3811c5caa9d3ee0c |
| Latest deploy log | https://app.netlify.com/sites/bulletproof-react-app/deploys/66f56613ecd4e00009cf43f9 |
| Deploy Preview | https://deploy-preview-214--bulletproof-react-app.netlify.app |
| Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
Package installed yarn add -D @julr/vite-plugin-validate-env
Modified files apps/react-vite -> vite.config.ts vite.config.ts
this is added in vite.config.ts ValidateEnv({ VITE_APP_API_URL: Schema.string(), VITE_APP_ENABLE_API_MOCKING: Schema.boolean(), }),
yarn add -D @julr/vite-plugin-validate-env