Skip to content

Environment Variables

  • .env.local is the environment variable for local development
  • .env is the environment variable for production

.env.* files can configure the following environment variables:

Variable NameDescriptionDefault ValueRemarks
VITE_APP_NAMEApplication NameVite Boilerplate
VITE_API_URLAPI URLhttp://localhost:5173/
VITE_ENABLE_DEVTOOLSEnable DevToolsfalse
VITE_EDITOREditorcursorclick-to-component
VITE_ENABLE_MOCKEnable Mocktrue
VITE_API_URLAPI URLhttp://localhost:5173/
VITE_ENABLE_MOCKEnable Mocktrue