From 2722c44ba550cd10a780b7821219e1353961eefc Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Thu, 18 Jul 2024 17:51:16 +0200
Subject: [PATCH] changes

---
 .gitlab-ci.yml | 4 +++-
 vite.config.js | 3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb2cba9f..963bb7fc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,7 +11,9 @@ build:
   before_script:
     - echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
     - echo 'yarn-offline-mirror-pruning true' >> .yarnrc
+    - apt-get update && apt-get install -y libpangocairo-1.0-0
     - yarn install --frozen-lockfile
+    - echo "$VITE_TEAM_NAME"
   script:
     - yarn build
     - mv dist public
@@ -29,11 +31,11 @@ pages:
   before_script:
     - echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
     - echo 'yarn-offline-mirror-pruning true' >> .yarnrc
+    - apt-get update && apt-get install -y libpangocairo-1.0-0
     - yarn install --frozen-lockfile
   script:
     - yarn build
     - mv dist public #Ensure the output directory is renamed to public
-    #- cp -a dist/. public/ #original
     - echo '/* /index.html 200' > public/_redirects #original
   artifacts:
     paths:
diff --git a/vite.config.js b/vite.config.js
index 13d14d99..94250047 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -5,9 +5,12 @@ import { stringToSlug } from "./src/utils";
 // https://vitejs.dev/config/
 export default () => {
   const env = loadEnv("dev", process.cwd());
+    // Sicherstellen, dass die Umgebungsvariable vorhanden ist
   if (!env.VITE_TEAM_NAME) {
     throw new Error("VITE_TEAM_NAME environment variable is not defined");
   }
+  // Debugging-Log, um den Wert der Umgebungsvariable zu überprüfen
+  console.log(`VITE_TEAM_NAME: ${env.VITE_TEAM_NAME}`);
   return defineConfig({
     base: `/${stringToSlug(env.VITE_TEAM_NAME)}/`,
     plugins: [react()],
-- 
GitLab