Change basePath

This commit is contained in:
Sidharth Vinod
2021-05-29 16:53:31 +05:30
parent 3490a119f9
commit 5954c8d671
3 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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,
+4 -2
View File
@@ -15,9 +15,11 @@ const config = {
adapter: adapter({
pages: 'docs'
}),
paths: {
paths: process.env['DEPLOY']
? {
base: '/mermaid-live-editor'
},
}
: {},
ssr: false,
// hydrate the <div id="svelte"> element in src/app.html
target: '#svelte'