Skip to content
Snippets Groups Projects
Commit 7e648fe1 authored by Leah Tacke genannt Unterberg's avatar Leah Tacke genannt Unterberg
Browse files

cleaning up environment variable configuration

parent 8299570c
No related branches found
No related tags found
No related merge requests found
Pipeline #480472 passed
API_BASE=backend
API_PORT=8080
API_PREFIX=/api
FRONTEND_PORT=8090
......
......@@ -79,7 +79,7 @@ export namespace Transforms {
}
const backendUrl = (process.env.API_HOST ?? window.location.host) + (process.env.API_PREFIX ?? '/api') // process.env.API_URL ?? 'http://localhost:8080' // import.meta.env?.VITE_API_URL ||
const backendUrl = (process.env.VITE_API_HOST ?? window.location.host) + (process.env.VITE_API_PREFIX ?? '/api') // process.env.API_URL ?? 'http://localhost:8080' // import.meta.env?.VITE_API_URL ||
console.log(`Using following (backend) API_URL: ${backendUrl}`)
// const f = jsYaml.loadAll('./api-schema/openapi.yaml')
......
......@@ -24,7 +24,7 @@ export default defineConfig(({command, mode}) => {
name: 'Roboto', styles: 'wght@100;300;400;500;700;900',
}],
},
}),], define: {'process.env': {API_HOST: env.VITE_API_HOST, API_PREFIX: env.VITE_API_PREFIX, SHARE_URL: env.VITE_SHARE_URL}}, resolve: {
}),], define: {'process.env': {VITE_API_HOST: env.VITE_API_HOST, VITE_API_PREFIX: env.VITE_API_PREFIX, SHARE_URL: env.VITE_SHARE_URL}}, resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}, extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue',],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment