Skip to content

Commit

Permalink
letsgo
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Jun 14, 2024
1 parent a215c9c commit 4de1709
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export async function POST(request: NextRequest) {
// // Ideally this would be an email or text message with a link to the magic link route
// magic_link: `${process.env.PUBLIC_URL}/app-router-magic-links/magic-login?seal=${seal}`,
// });
const link = `${process.env.NEXT_PUBLIC_VERCEL_URL || process.env.NEXT_PUBLIC_URL}/app-router-magic-links/magic-login?seal=${seal}`;
const link = `${process.env.NEXT_PUBLIC_URL}/app-router-magic-links/magic-login?seal=${seal}`;
return new Response(
`<h1>Here is your magic link:</h1><h3><a href="${link}">${link}</a></h3><h3>You can now open this link in a private browser window and see yourself being logged in immediately.</h3><h3>👈 <a href="/app-router-magic-links">Go back</a></h3>`,
{
Expand Down

0 comments on commit 4de1709

Please sign in to comment.