Skip to content

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
Member

@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
@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

5 participants