Skip to content

Commit

Permalink
fix: handle missing referrer
Browse files Browse the repository at this point in the history
  • Loading branch information
ndom91 committed May 4, 2023
1 parent 802b66a commit e97580f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/bookmarks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ const handler = async (req, res) => {

if (
!metadata.image &&
referrer.includes('briefkastenhq.com') &&
referrer?.includes('briefkastenhq.com') &&
process.env.INNGEST_URL
) {
await fetch(process.env.INNGEST_URL, {
Expand Down

1 comment on commit e97580f

@vercel
Copy link

@vercel vercel bot commented on e97580f May 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.