diff --git a/.env.example b/.env.example index 0d1ec67..dedb026 100644 --- a/.env.example +++ b/.env.example @@ -3,3 +3,7 @@ VITE_ENABLE_TELEMETRY=false # Optional app version tag for event properties VITE_APP_VERSION=dev + +# Required for local self-hosted mode: multiplexes WebSocket collab on the +# main HTTP port instead of port+1. +COLLAB_EMBEDDED_WS=1 diff --git a/server/index.ts b/server/index.ts index c12a13c..3bb75b4 100644 --- a/server/index.ts +++ b/server/index.ts @@ -47,6 +47,7 @@ async function main(): Promise { app.use(express.json({ limit: '10mb' })); app.use(express.static(path.join(__dirname, '..', 'public'))); + app.use(express.static(path.join(__dirname, '..', 'dist'))); app.use((req, res, next) => { const originHeader = req.header('origin');