Change basePath
This commit is contained in:
@@ -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
@@ -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,
|
||||
|
||||
+5
-3
@@ -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 <div id="svelte"> element in src/app.html
|
||||
target: '#svelte'
|
||||
|
||||
Reference in New Issue
Block a user