Enable container environment variables for config.

Fixes #1
This commit is contained in:
2023-10-18 17:51:49 -05:00
parent 101c202615
commit e7dd75bc2b
11 changed files with 70 additions and 13 deletions

View File

@@ -1,3 +1,5 @@
import { apiBaseUrl } from '../app.config.js';
export function getAuthKeyFromProperties(props) {
var authKey;
@@ -27,9 +29,7 @@ export function getTenantProperty(key, props) {
var authKey = getAuthKeyFromProperties(props);
console.log(`Fetching TPS Property [${key}]`);
fetch(
`${
import.meta.env.VITE_EO_SERVICES_URL
}/api/tps?propertyName=${key}&authKey=${authKey}`,
`${apiBaseUrl}/tps?propertyName=${key}&authKey=${authKey}`,
{
credentials: "include", // fetch won't send cookies unless you set credentials
}