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

fix local next build #749

Merged
merged 2 commits into from
Mar 4, 2024
Merged

fix local next build #749

merged 2 commits into from
Mar 4, 2024

Conversation

technophile-04
Copy link
Collaborator

@technophile-04 technophile-04 commented Mar 2, 2024

Description

If you cd packages/nextjs and run yarn build it fails,

The reason was baseUrl which we were generating for metadata.

This PR adds a fallback port, similar to how next metadataBase default works.

Btw we need baseUrl since OpenGraph.image and Twitter.image they both absoulte path and passing just /thumbnail.jpg does not work, check out code commet here.

Closes #748

Copy link
Collaborator

@Pabl0cks Pabl0cks left a comment

Choose a reason for hiding this comment

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

Great job @technophile-04!! yarn run build is working again on my Windows environment after your fix 🙌

TYSM

Copy link
Collaborator

@rin-st rin-st left a comment

Choose a reason for hiding this comment

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

lgtm!

I thought I've seen pr for formatting (not cli one). But it works great and I think it's ok that it in this pr

@carletex carletex merged commit cdd321e into main Mar 4, 2024
1 check passed
@carletex carletex deleted the fix/local-build branch March 4, 2024 09:48
@github-actions github-actions bot mentioned this pull request Mar 11, 2024
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.

bug: cd packages/nextjs && yarn run build doesn't work
4 participants