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:
Alois Klink
2022-09-28 19:52:31 +01:00
parent 766bdde46b
commit 5cfbc9102e

View File

@@ -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'));