We store the global configuration of a Devias Kit Pro application in src/config.ts
.
The configuration has the following structure:
These values are used throughout the application instead of being hardcoded into the codebase.
Loading Environment Variables
Both Next.js and Vite have built-in support for loading environment variables from .env.local
into process.env
.
Development Environment Variables
The development environment variables:
Vite uses a similar approach to Next.js, but instead of loading the environment variables into process.env
, it exposes them as import.meta.env
.