From d5cff4f3bfd8cba231490f2f0616f5d624ab6f37 Mon Sep 17 00:00:00 2001 From: Kasper Seweryn Date: Sun, 27 Feb 2022 23:20:03 +0100 Subject: [PATCH] Fix deployment base path --- .gitlab-ci.yml | 2 +- front/package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 909f913dd..10f56439e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -256,7 +256,7 @@ build_front: - yarn run i18n-compile # this is to ensure we don't have any errors in the output, # cf https://dev.funkwhale.audio/funkwhale/funkwhale/issues/169 - - yarn build | tee /dev/stderr | (! grep -i 'ERROR in') + - yarn run build:deployment | tee /dev/stderr | (! grep -i 'ERROR in') - chmod -R 755 dist artifacts: name: "front_${CI_COMMIT_REF_NAME}" diff --git a/front/package.json b/front/package.json index dea9482fa..292a32865 100644 --- a/front/package.json +++ b/front/package.json @@ -7,6 +7,7 @@ "scripts": { "dev": "vite", "build": "vite build", + "build:deployment": "vite build --base /front", "serve": "vite preview", "test:unit": "true", "lint": "eslint --ext .js,.vue src",