.env.*
files with required values ( eg PUBLIC_BASE_URL)Once you've created a project and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app:
npm run build // Dev build with default .env file
npm run build:uat // uat build picks env.uat
npm run build:cug // cug build picks env.cug
npm run build:prod // prod build picks env.prod
You can preview the production build with npm run preview
.