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