npm install
All environment variables for react application must start with APP_
prefix
To change env prefix change add or remove string from envPrefix
variable in vite.config.json
Environtment variables can be accesed using env.<name>
or import.meta.env.<name>
. Prefix must be included.
Declare env types in src/env.d.ts
in ImportMetaEnv
interface
The environment variables can be found and modified in the .env
file. See .env
for default values.
In the project directory, you can run:
Start development build.
npm start
Type check and build for production.
npm run build
Preview production build.
npm run preview
Removes all the files generated by the build process.
npm run clean
Finds linting errors.
npm run lint:check
Fix linting errors.
npm run lint:fix
Check the code formatting.
npm run prettier:check
Fix the code formatting.
npm run prettier:fix
Check Typescript types.
npm run types:check
Check linting, code formatting, Typescript types.
npm run check
Fix linting, code formatting, and check Typescript types.
npm run fix
- If you want to disable check and fix workflow you need to remove
.github/workflows/check-and-fix.yml
. - If you want to disable dependabot you need to remove
.github/dependabot.yml
. - If you want to disable codeql analysis you need to remove
.github/workflows/codeql-analysis.yml
.