Skip to content

Commit

Permalink
change test uri
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Jun 4, 2024
1 parent 5053e5a commit 7b71468
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/test.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// pages/test.js
import { useEffect } from "react";
import { SERVER_URI } from "../constants/apiConstants";

const publicVapidKey = process.env.NEXT_PUBLIC_PWA_KEY; // REPLACE_WITH_YOUR_KEY

Expand Down Expand Up @@ -50,7 +51,7 @@ const send = async () => {

// Send Push Notification
console.log("Sending Push...");
await fetch("/api/subscribe", {
await fetch(`${SERVER_URI}/webpush/subscribe`, {
method: "POST",
body: JSON.stringify(subscription),
headers: {
Expand Down

0 comments on commit 7b71468

Please sign in to comment.