Service Workerが正しく登録できないのを修正
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user