From 8654af888cae4726e9ea80bcd6f58f7610c37409 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 23 May 2021 00:34:28 +0530 Subject: [PATCH] Fix path --- .github/workflows/deploy.yml | 1 + svelte.config.js | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 3ae07f4e..1545b288 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,7 @@ jobs: npm i -g yarn yarn install yarn version --patch --no-git-tag-version + export CI=true yarn build git config user.name github-actions git config user.email github-actions@github.com diff --git a/svelte.config.js b/svelte.config.js index 901d2968..36a50ad8 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -15,9 +15,11 @@ const config = { adapter: adapter({ pages: 'docs' }), - paths: { - base: '/mermaid-svelte-kit' - }, + paths: process.env['CI'] + ? { + base: '/mermaid-svelte-kit' + } + : {}, ssr: false, // hydrate the
element in src/app.html target: '#svelte'