diff --git a/.env b/.env new file mode 100644 index 0000000..a35c55f --- /dev/null +++ b/.env @@ -0,0 +1 @@ +VUE_APP_COUCHDB=https://juliencalixte.ddns.net/database \ No newline at end of file diff --git a/src/services/CouchService.ts b/src/services/CouchService.ts index 5fbe9f7..87cf8f8 100644 --- a/src/services/CouchService.ts +++ b/src/services/CouchService.ts @@ -20,7 +20,7 @@ const remoteConfig = { } } const LOCALE_DB: string = 'VAQUANT_LOCALE_DB' -const REMOTE: string = 'https://juliencalixte.ddns.net/database' +const REMOTE: string = process.env.VUE_APP_COUCHDB || '' class CouchService { public db: PouchDB.Database | null = null