Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the fix for 401 Unauthorized Social media preview images #594

Conversation

onnimonni
Copy link
Contributor

@onnimonni onnimonni commented Jan 31, 2024

Description

Default configuration for projects has changed in Vercel and nowadays the Deployment Protection is enabled by default.

I didn't find a way how to disable it from the command line so I figured we should just document the manual steps to the Readme.

Vercel Deployment Protection setting which causes social media preview image function endpoint to return 401 Unauthorized

Issues closed by this

Fixes #435 and Fixes #437

Copy link

vercel bot commented Jan 31, 2024

@onnimonni is attempting to deploy a commit to the Saasify Team on Vercel.

A member of the Team first needs to authorize it.

onnimonni added a commit to onnimonni/nextjs-notion-starter-kit that referenced this pull request Jan 31, 2024
onnimonni added a commit to travelingvanproblem/travelingvanproblem.com that referenced this pull request Jan 31, 2024
* document-fix-for-social-media-preview-images:
  Add the uploaded image from Pull Request transitive-bullshit#594
  Document the fix for 401 unauthorized Social media preview images
onnimonni added a commit to travelingvanproblem/travelingvanproblem.com that referenced this pull request Jan 31, 2024
…fix the README layout about the Vercel configuration
onnimonni added a commit to onnimonni/nextjs-notion-starter-kit that referenced this pull request Jan 31, 2024
…fix the README layout about the Vercel configuration
@onnimonni onnimonni force-pushed the document-fix-for-social-media-preview-images branch from 52a12a7 to ed853d9 Compare January 31, 2024 10:49
@transitive-bullshit
Copy link
Owner

@onnimonni this looks great. I just pushed a fix for the social image generation itself.

Can you update the Vercel screenshot to show the correct setting (with protection disabled) instead of the incorrect setting?

Then I'll merge. Thanks!

@onnimonni
Copy link
Contributor Author

I created a short GIF which will hopefully make it even easier to understand:
disable-vercel-authentication

@onnimonni onnimonni force-pushed the document-fix-for-social-media-preview-images branch from ed853d9 to d476e81 Compare November 8, 2024 13:48
@transitive-bullshit transitive-bullshit merged commit 5441482 into transitive-bullshit:main Nov 8, 2024
4 of 5 checks passed
@transitive-bullshit
Copy link
Owner

This is great; thanks @onnimonni 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Not functional] - Social images Social Image API fails to Generate
2 participants