diff --git a/client/src/pages/home.tsx b/client/src/pages/home.tsx index ea01fad..5db7d9f 100644 --- a/client/src/pages/home.tsx +++ b/client/src/pages/home.tsx @@ -91,7 +91,7 @@ export default function Home() { const registration = await navigator.serviceWorker.ready; const subscription = await registration.pushManager.subscribe({ userVisibleOnly: true, - applicationServerKey: process.env.VITE_VAPID_PUBLIC_KEY + applicationServerKey: import.meta.env.VITE_VAPID_PUBLIC_KEY }); await apiRequest('POST', '/api/subscriptions', subscription);