Move API_ORIGIN into constants.js

This commit is contained in:
Johannes Zellner
2025-03-03 11:22:56 +01:00
parent 6c674e86e5
commit ef0a9a4a1e
37 changed files with 196 additions and 217 deletions

View File

@@ -1,4 +1,6 @@
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN || window.location.origin;
// app.accessRestriction:
// null = ANY
// false = NOSSO
@@ -307,6 +309,7 @@ const BACKUP_FORMATS = [
// named exports
export {
API_ORIGIN,
ACL_OPTIONS,
APP_TYPES,
ERROR,
@@ -337,6 +340,7 @@ export {
// default export
export default {
API_ORIGIN,
ACL_OPTIONS,
APP_TYPES,
ERROR,