Skip to content
Snippets Groups Projects
Commit 2722c44b authored by Liliana Sanfilippo's avatar Liliana Sanfilippo
Browse files

changes

parent 9171c509
No related branches found
No related tags found
No related merge requests found
Pipeline #394438 failed
......@@ -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:
......
......@@ -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()],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment