frontend: ensure API_ORIGIN is always set

This commit is contained in:
Johannes Zellner
2024-08-23 19:28:26 +02:00
parent 199dbff7b1
commit 9f89b07777
5 changed files with 19 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? 'https://' + import.meta.env.VITE_API_ORIGIN : '';
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? 'https://' + import.meta.env.VITE_API_ORIGIN : window.origin;
import { createI18n } from 'vue-i18n';
import { fetcher } from 'pankow';