aboutsummaryrefslogtreecommitdiffstats
path: root/site/src/components/NotificationButton.tsx
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2025-10-03 17:27:51 -0700
committerPinapelz <yukais@pinapelz.com>2025-10-03 17:27:51 -0700
commit2c349d08bd2d6b946f36d7fe9598e22cac393006 (patch)
tree4f9e4377de6aed916ec581f7bffb89c1ceaa270f /site/src/components/NotificationButton.tsx
parentb39661dbad63679d014c77a392e76777251152d6 (diff)
move vapid and firebase configs to env vars
Diffstat (limited to 'site/src/components/NotificationButton.tsx')
-rw-r--r--site/src/components/NotificationButton.tsx3
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;
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage