Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
Bielefeld-CeBiTec
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
2024 Competition
Bielefeld-CeBiTec
Commits
2722c44b
Commit
2722c44b
authored
8 months ago
by
Liliana Sanfilippo
Browse files
Options
Downloads
Patches
Plain Diff
changes
parent
9171c509
No related branches found
No related tags found
No related merge requests found
Pipeline
#394438
failed
8 months ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+3
-1
3 additions, 1 deletion
.gitlab-ci.yml
vite.config.js
+3
-0
3 additions, 0 deletions
vite.config.js
with
6 additions
and
1 deletion
.gitlab-ci.yml
+
3
−
1
View file @
2722c44b
...
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
vite.config.js
+
3
−
0
View file @
2722c44b
...
...
@@ -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
()],
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment