Initial
This commit is contained in:
@@ -12,6 +12,12 @@ export function getBooleanSetting(key, fallback) {
|
||||
return String(value).toLowerCase() === 'true';
|
||||
}
|
||||
|
||||
export function getStringSetting(key, fallback = '') {
|
||||
const value = getSetting(key);
|
||||
const normalized = String(value ?? '').trim();
|
||||
return normalized || fallback;
|
||||
}
|
||||
|
||||
// Effective CORS allow-list: admin-editable `trusted_origins` merged with the
|
||||
// built-in localhost defaults so the dev experience never locks itself out.
|
||||
export function effectiveTrustedOrigins() {
|
||||
|
||||
Reference in New Issue
Block a user