mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-15 06:19:24 +02:00
build(dev): Fix dev server not showing mermaid.js
When moving to the mono-repo, `<script src="http://localhost:9000/mermaid.js"/>` stopped working, since the vite dev server was exposing the `./dist` folder, when the folder had moved to the `./packages/mermaid/dist` folder.
This commit is contained in:
@@ -13,7 +13,7 @@ async function createServer() {
|
||||
});
|
||||
|
||||
app.use(vite.middlewares);
|
||||
app.use(express.static('dist'));
|
||||
app.use(express.static('./packages/mermaid/dist'));
|
||||
app.use(express.static('demos'));
|
||||
app.use(express.static('cypress/platform'));
|
||||
|
||||
|
Reference in New Issue
Block a user