diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-10-03 17:27:51 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-10-03 17:27:51 -0700 |
| commit | 2c349d08bd2d6b946f36d7fe9598e22cac393006 (patch) | |
| tree | 4f9e4377de6aed916ec581f7bffb89c1ceaa270f /site/src/components | |
| parent | b39661dbad63679d014c77a392e76777251152d6 (diff) | |
move vapid and firebase configs to env vars
Diffstat (limited to 'site/src/components')
| -rw-r--r-- | site/src/components/NotificationButton.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/site/src/components/NotificationButton.tsx b/site/src/components/NotificationButton.tsx index fa31cde..0ab0e8e 100644 --- a/site/src/components/NotificationButton.tsx +++ b/site/src/components/NotificationButton.tsx @@ -3,8 +3,7 @@ import { messaging, initializeForegroundNotifications } from "../firebase.ts"; import { getToken, deleteToken } from "firebase/messaging"; import { getGameTitle } from "../utils.ts"; -const VAPID_KEY = - "BK7tpLF5Loy8Ew8bKxhTi-vOEJdxJSnu-jPyagWecLdD_SrEAt_OQS7nu0Xu3hR7AQpn0cOmgcdeeQd5zq5-Gyo"; +const VAPID_KEY = import.meta.env.VITE_VAPID_KEY; interface NotificationButtonProps { className?: string; |
