Skip to content
Snippets Groups Projects
Verified Commit 11001ff9 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Review app

parent c82f7330
No related branches found
No related tags found
1 merge request!5Review app
Pipeline #4548 passed with stage
in 1 minute and 30 seconds
stages:
- review
- build
review:
stage: review
image: buildkite/puppeteer
variables:
GIT_STRATEGY: clone
VUE_APP_ROUTER_BASE_URL: /-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/
before_script:
- apt-get update && apt-get install -y jq
- yarn install
script:
- yarn lint
- yarn i18n-compile
- yarn build
- rm -rf review
- mv dist review
cache:
key: front_node_modules
paths:
- "node_modules"
artifacts:
expire_in: 2 weeks
paths:
- review
only:
- branches
except:
- master@funkwhale/funkwhale.audio
tags:
- docker
environment:
name: review/front/$CI_COMMIT_REF_NAME
url: http://$CI_PROJECT_NAMESPACE.pages.funkwhale.audio/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/review/index.html
pages:
stage: build
......
......@@ -7,7 +7,7 @@ Vue.use(Router);
export default new Router({
mode: "history",
base: process.env.BASE_URL,
base: process.env.BASE_URL || '/',
scrollBehavior (to, from, savedPosition) {
return new Promise((resolve) => {
setTimeout(() => {
......
......@@ -3,6 +3,7 @@ const path = require("path");
const PrerenderSPAPlugin = require("prerender-spa-plugin");
module.exports = {
baseUrl: process.env.VUE_APP_ROUTER_BASE_URL || '/',
chainWebpack: (config) => {
config.plugins.delete('prefetch');
},
......
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