Service Workerが正しく登録できないのを修正

This commit is contained in:
CyberRex
2026-05-25 12:25:37 +09:00
parent ef476402fc
commit 50b872b439
3 changed files with 20 additions and 0 deletions
+1
View File
@@ -24,6 +24,7 @@ export function createApp() {
app.route('/api/notification-methods', notificationMethodRoutes);
app.use('/assets/*', serveStatic({ root: './dist' }));
app.get('/push-sw.js', serveStatic({ path: './public/push-sw.js' }));
app.get('*', serveStatic({ path: './dist/index.html' }));
app.onError((error, c) => {