diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb2cba9f3b840399bd2e76f8618acdae38db89f2..963bb7fc09beeae4bd6e8802a9587a22b07c8ff1 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 13d14d99408cff1d2f548fa617ffea5e8fe16f47..94250047d588939025e89cc26b84c63d5cbfb1e7 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()],