diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ad86d296..d2d9df70 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,7 +17,7 @@ jobs: - name: Build & Deploy run: | npm i -g yarn - export CI=true + export DEPLOY=true rm -rf docs/_app yarn install # yarn run lint diff --git a/cypress.json b/cypress.json index 6253d1fa..70b8e6bd 100644 --- a/cypress.json +++ b/cypress.json @@ -1,7 +1,7 @@ { "projectId": "2ckppp", "$schema": "https://on.cypress.io/cypress.schema.json", - "baseUrl": "http://localhost:3000/mermaid-live-editor", + "baseUrl": "http://localhost:3000", "pluginsFile": "./cypress/plugins/index.cjs", "viewportWidth": 1440, "viewportHeight": 768, diff --git a/svelte.config.js b/svelte.config.js index 03dda5fb..2ab6ec89 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -15,9 +15,11 @@ const config = { adapter: adapter({ pages: 'docs' }), - paths: { - base: '/mermaid-live-editor' - }, + paths: process.env['DEPLOY'] + ? { + base: '/mermaid-live-editor' + } + : {}, ssr: false, // hydrate the