wuhp commited on
Commit
89721cc
·
verified ·
1 Parent(s): 48e5024

Update server.ts

Browse files
Files changed (1) hide show
  1. server.ts +4 -0
server.ts CHANGED
@@ -87,6 +87,10 @@ async function startServer() {
87
  res.json({ status: 'ok', dir: __dirname, time: new Date().toISOString() });
88
  });
89
 
 
 
 
 
90
  app.get('*', (req, res) => {
91
  res.sendFile(path.join(distPath, 'index.html'));
92
  });
 
87
  res.json({ status: 'ok', dir: __dirname, time: new Date().toISOString() });
88
  });
89
 
90
+ app.get('/assets/*', (req, res) => {
91
+ res.status(404).send('Not Found');
92
+ });
93
+
94
  app.get('*', (req, res) => {
95
  res.sendFile(path.join(distPath, 'index.html'));
96
  });