From 165f8df46771a6e6e56bd094d960c6c37106b0f4 Mon Sep 17 00:00:00 2001 From: mmabdalla <101379618+mmabdalla@users.noreply.github.com> Date: Mon, 29 Dec 2025 10:00:42 +0200 Subject: [PATCH] Fix: Add Express route for assets to handle BOSA catch-all routing --- server.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.js b/server.js index 90d49b3..f26f2c6 100644 --- a/server.js +++ b/server.js @@ -83,6 +83,9 @@ app.get('/preview/:id', previewPage); // The base path in Vite config ensures assets are referenced as /bp_wb/assets/* app.use('/assets', express.static(path.join(__dirname, 'dist', 'assets'))); +// Also handle assets with parameterized route (for BOSA catch-all routing) +app.get('/assets/:filepath', serveAssets); + // Handler function for manifest route (BOSA calls this) async function serveAssets(req, res) { const filepath = req.params.filepath || req.path.replace('/assets/', '');