bulletproof-react icon indicating copy to clipboard operation
bulletproof-react copied to clipboard

env validation for react-vite

Open SaqibAltaf opened this issue 1 year ago • 2 comments
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

SaqibAltaf avatar Sep 26 '24 13:09 SaqibAltaf

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...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] avatar Sep 26 '24 13:09 netlify[bot]

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

SaqibAltaf avatar Sep 26 '24 13:09 SaqibAltaf