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",