Learn how to define the global configuration for your application.
We store the global configuration of a Devias Kit Pro application in src/config/app.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.
Development Environment Variables
Next.js
To load these variables, you need to create a .env.local file in the root of your project.
Next.js will automatically load the variables into process.env.
Vite
To load these variables, you need to create a .env.local file in the root of your project. Vite will automatically
load the variables into import.meta.env.