From 9f5e68a125e90b67dcfabba53a738bc71ecbcaa2 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Wed, 23 Feb 2022 12:05:06 +0000 Subject: [PATCH] feat: change preview api url (#1584) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/1584 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- .drone.yml | 4 +++- netlify.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 050108254..dc82fa780 100644 --- a/.drone.yml +++ b/.drone.yml @@ -123,7 +123,6 @@ steps: - yarn serve:dist & npx wait-on http://localhost:4173 - yarn test:frontend --browser chrome --record depends_on: - - dependencies - build-prod - name: deploy-preview @@ -137,6 +136,9 @@ steps: GITEA_TOKEN: from_secret: gitea_token commands: + - cp -r dist dist-preview + # Override the default api url used for preview + - sed -i 's|localhost:3456|try.vikunja.io|g' dist-preview/index.html - shasum -a 384 -c ./scripts/deploy-preview-netlify.js.sha384 - node ./scripts/deploy-preview-netlify.js depends_on: diff --git a/netlify.toml b/netlify.toml index 24ee45e7f..a0bfdfabc 100644 --- a/netlify.toml +++ b/netlify.toml @@ -1,6 +1,6 @@ [build] command = "yarn build" - publish = "dist" + publish = "dist-preview" [[redirects]] from = "/*"