mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 07:46:30 +01:00
chore(dx/client): improve startup speed by properly configuring middleware
This commit is contained in:
@@ -23,6 +23,8 @@ async function register(app: express.Application) {
|
||||
|
||||
if (isDev) {
|
||||
const vite = await createViteServer({
|
||||
server: { middlewareMode: true },
|
||||
appType: "custom",
|
||||
cacheDir: path.join(srcRoot, "../../.cache/vite"),
|
||||
base: `/${assetUrlFragment}/`,
|
||||
root: path.join(srcRoot, "../client"),
|
||||
|
||||
Reference in New Issue
Block a user