ki-frontend/vue.config.js
André Jaenisch e283ee1d2d
Some checks failed
continuous-integration/drone/pr Build is failing
refactor: allow for tenants
This way by adjusting a handful of environment variables the Frontend
can be used by organisations outside of WTFeG.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2025-05-12 14:33:54 +02:00

19 lines
298 B
JavaScript

const { defineConfig } = require('@vue/cli-service');
let sav = "";
for (let e in process.env) {
if (/VUE_APP_/i.test(e)) {
sav += `$${e}: "${process.env[e]}";`;
}
}
module.exports = defineConfig({
css: {
loaderOptions: {
sass: {
additionalData: sav,
}
}
}
})