Fix: Add assets route to manifest.yaml

This commit is contained in:
mmabdalla 2025-12-29 01:41:43 +02:00
parent 77a2d60157
commit 4aec140658

View file

@ -81,7 +81,6 @@ app.get('/preview/:id', previewPage);
// Serve static assets (Vite build outputs) // Serve static assets (Vite build outputs)
app.use('/assets', express.static(path.join(__dirname, 'dist', 'assets'))); app.use('/assets', express.static(path.join(__dirname, 'dist', 'assets')));
// Route handlers
async function serveEditor(req, res) { async function serveEditor(req, res) {
const indexPath = path.join(__dirname, 'dist', 'frontend', 'index.html'); const indexPath = path.join(__dirname, 'dist', 'frontend', 'index.html');
res.sendFile(indexPath); res.sendFile(indexPath);