Move API_ORIGIN into constants.js
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user