From 1396320494e97f4936f7714478d4becd0cb5ee41 Mon Sep 17 00:00:00 2001
From: liliana <liliana.sanfilippo@uni-bielefeld.de>
Date: Thu, 18 Jul 2024 17:47:11 +0200
Subject: [PATCH] if (!env.VITE_TEAM_NAME) {     throw new
 Error("VITE_TEAM_NAME environment variable is not defined");   }

---
 vite.config.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/vite.config.js b/vite.config.js
index 7cb36e32..13d14d99 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -5,6 +5,9 @@ import { stringToSlug } from "./src/utils";
 // https://vitejs.dev/config/
 export default () => {
   const env = loadEnv("dev", process.cwd());
+  if (!env.VITE_TEAM_NAME) {
+    throw new Error("VITE_TEAM_NAME environment variable is not defined");
+  }
   return defineConfig({
     base: `/${stringToSlug(env.VITE_TEAM_NAME)}/`,
     plugins: [react()],
-- 
GitLab