undefined | string | number | booleanThe configuration value (string, number, or boolean)
Sidebar Title
getConfig (server)
Examples
import { getConfig } from 'modelence/server';// Get the site URLconst siteUrl = getConfig('_system.site.url');
Set via environment variable:
MODELENCE_SITE_URL=https://myapp.com
import { getConfig } from 'modelence/server';// Get the current environment (e.g., 'development', 'staging', 'production')const env = getConfig('_system.env');if (env === 'production') { // Enable production features}