-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(nx-dev): OG image meta tag #27195
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 438e070. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
1308417
to
b6956e2
Compare
b6956e2
to
681c743
Compare
196558b
to
d867c92
Compare
9037206
to
c7c669f
Compare
c7c669f
to
438e070
Compare
image: imagePath.replace(ext, foundExt), | ||
type: foundExt.replace('.', ''), | ||
}; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: for code readability I prefer an else
here to see the two options
const { ext } = parse(imagePath); | ||
|
||
if (!allowedExtensions.includes(ext)) { | ||
const foundExt = allowedExtensions.find((allowedExt) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love if this at some point would automatically run a conversion. But this def works for now
(cherry picked from commit edf0651)
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
This PR defaults the OG image if one of the correct file types is not provided.