Skip to content

Commit

Permalink
Use VERCEL_URL in client ID generation (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn authored May 17, 2024
1 parent 40ed37d commit 8e7c9a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/api/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
return res.status(405).send("Method Not Allowed");
}

const clientId = new URL("/api/app", `https://${req.headers.host}`);
const hostname = new URL("/", `https://${req.headers.host}`);
const clientId = new URL("/api/app", `https://${process.env.VERCEL_URL}`);
const hostname = new URL("/", `https://${process.env.VERCEL_URL}`);

const acceptedType = accepts(req).type([
"application/ld+json",
Expand Down

0 comments on commit 8e7c9a6

Please sign in to comment.