diff --git a/public/firebase-messaging-sw.js b/public/sw.js similarity index 100% rename from public/firebase-messaging-sw.js rename to public/sw.js diff --git a/src/components/pwa/UseSendPush.tsx b/src/components/pwa/UseSendPush.tsx index 24ef753..7798aaf 100644 --- a/src/components/pwa/UseSendPush.tsx +++ b/src/components/pwa/UseSendPush.tsx @@ -14,7 +14,7 @@ const useSendPush = () => { data: { title, body, - image: '/public/icons/manifest/icon-192x192.png', + image: '/public/Logo512.png', click_action }, token diff --git a/tsconfig.json b/tsconfig.json index 72f9d97..cc774f4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -24,6 +24,6 @@ "@store/*": ["src/store/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.mjs", "types", "public/firebase-messaging-sw.js", "src/firebase/firebasedb.js"], + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", "next.config.mjs", "types", "public/sw.js", "src/firebase/firebasedb.js"], "exclude": ["node_modules"] }