From 8488c05136f468017f8505071b48c379d6e6165f Mon Sep 17 00:00:00 2001 From: Jesse Szepieniec Date: Tue, 9 Jun 2026 10:26:44 +0200 Subject: [PATCH] fix: serve built editor assets from dist/ directory The server reads dist/index.html to inject meta tags and serve it for /d/:slug routes, but never registered dist/ as a static path. This caused the browser to receive 404s for editor.js and all other built assets, leaving the page stuck on "Loading editor...". Co-Authored-By: Claude Sonnet 4.6 --- server/index.ts | 1 + 1 file changed, 1 insertion(+) 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');