mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
fix server
This commit is contained in:
@@ -124,9 +124,15 @@ const init: Function = async (
|
||||
|
||||
app.use(`/${appName}`, ExpressStatic('/usr/src/app/public'));
|
||||
|
||||
app.get(`/${appName}/dist/bundle.js`, (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.sendFile('/usr/src/app/public/dist/bundle.js');
|
||||
});
|
||||
|
||||
app.get('/*', (_req: ExpressRequest, res: ExpressResponse) => {
|
||||
res.sendFile('/usr/src/app/public/index.html');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Attach Error Handler.
|
||||
|
||||
Reference in New Issue
Block a user