diff --git a/.env.development b/.env.development index cad85168b..4542f8174 100644 --- a/.env.development +++ b/.env.development @@ -24,4 +24,4 @@ NEXT_PUBLIC_USE_MOCKS=true # z.B. http://10.10.0.13/xyz/index.aspx -> basePath in config.json auf /xyz setzen # basePath wird jetzt in public/config.json gepflegt # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.327 +NEXT_PUBLIC_APP_VERSION=1.1.328 diff --git a/.env.production b/.env.production index 6eb07fc00..ae886050b 100644 --- a/.env.production +++ b/.env.production @@ -25,4 +25,4 @@ NEXT_PUBLIC_USE_MOCKS=false # basePath wird jetzt in public/config.json gepflegt # App-Versionsnummer -NEXT_PUBLIC_APP_VERSION=1.1.327 +NEXT_PUBLIC_APP_VERSION=1.1.328 diff --git a/package-lock.json b/package-lock.json index 073234d78..807d01540 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nodemap", - "version": "1.1.327", + "version": "1.1.328", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nodemap", - "version": "1.1.327", + "version": "1.1.328", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/package.json b/package.json index cc89a00f7..54c5a2d4a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nodemap", - "version": "1.1.327", + "version": "1.1.328", "dependencies": { "@emotion/react": "^11.13.3", "@emotion/styled": "^11.13.0", diff --git a/utils/initializeMap.js b/utils/initializeMap.js index 8c979e87f..235166352 100644 --- a/utils/initializeMap.js +++ b/utils/initializeMap.js @@ -13,7 +13,8 @@ export const initializeMap = ( setPolylineEventsDisabled, logError = false ) => { - const basePath = process.env.NEXT_PUBLIC_BASE_PATH; + // basePath wird aus config.json geladen (siehe unten) + let basePath = undefined; if ( !mapContainer || @@ -80,6 +81,10 @@ export const initializeMap = ( } } if (config) { + // basePath aus config.json + if (typeof config.basePath === "string") { + basePath = config.basePath; + } // Tile source if (config.tileSources && config.active && config.tileSources[config.active]) { const tileSource = config.tileSources[config.active];