Add example .env var, fix linting

This commit is contained in:
Bruno Bernardino
2025-01-11 07:14:02 +00:00
parent 8929b6e7d2
commit 2a95ce06b0
2 changed files with 2 additions and 1 deletions

View File

@@ -22,7 +22,7 @@ export function isAppEnabled(app: 'news' | 'notes' | 'photos') {
export function isCookieDomainAllowed(domain: string) {
const allowedDomains = (Deno.env.get('CONFIG_ALLOWED_COOKIE_DOMAINS') || '').split(',') as typeof domain[];
if (allowedDomains.length === 0) {
return true;
}