Make baseUrl dynamic and tweak invalid input style's contrast

This commit is contained in:
Bruno Bernardino
2024-03-17 08:10:36 +00:00
parent 7262bba4e0
commit 2d70a3817d
4 changed files with 14 additions and 3 deletions

View File

@@ -1,6 +1,16 @@
import { Contact, ContactAddress, ContactField } from './types.ts';
export const baseUrl = 'https://app.bewcloud.com';
let BASE_URL = typeof window !== 'undefined' && window.location
? `${window.location.protocol}//${window.location.host}`
: '';
if (typeof Deno !== 'undefined') {
await import('std/dotenv/load.ts');
BASE_URL = Deno.env.get('BASE_URL') || '';
}
export const baseUrl = BASE_URL || 'http://localhost:8000';
export const defaultTitle = 'bewCloud is a modern and simpler alternative to Nextcloud and ownCloud';
export const defaultDescription = `Have your calendar, contacts, tasks, and files under your own control.`;
export const helpEmail = 'help@bewcloud.com';