Skip to content

Commit f7fbf04

Browse files
authored
fix default hostname environment variable to work on runtime (#724)
* fix default hostname environment variable to work on runtime * apply formatting changes --------- Co-authored-by: Logende <[email protected]>
1 parent a59690b commit f7fbf04

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Install and Build
1717
env:
1818
USE_META_CONFIGURATOR_BASE_PATH: true # Set to true for GitHub Pages deployment
19-
FRONTEND_HOSTNAME: https://metaconfigurator.github.io/meta-configurator
19+
VITE_FRONTEND_HOSTNAME: https://metaconfigurator.github.io/meta-configurator
2020
run: |
2121
cd meta_configurator
2222
npm ci

meta_configurator/src/settings/defaultSettingsData.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ export const SETTINGS_DATA_DEFAULT = {
8686
},
8787
frontend: {
8888
hostname:
89-
process.env.FRONTEND_HOSTNAME || 'https://metaconfigurator.github.io/meta-configurator',
89+
import.meta.env.VITE_FRONTEND_HOSTNAME ||
90+
'https://metaconfigurator.github.io/meta-configurator',
9091
},
9192
backend: {
9293
hostname: 'https://metaconfigurator.informatik.uni-stuttgart.de',

0 commit comments

Comments
 (0)