Skip to content

Conversation

conico974
Copy link
Collaborator

This PR polyfill import.meta.url for packages that may rely on it.
I'm not 100% sure that is what we'd want to end up doing long term.
I feel like this could backfire in the future, a better but more complicated fix would be to replace these values at build time.

Copy link

changeset-bot bot commented May 5, 2025

🦋 Changeset detected

Latest commit: 05c22c2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@opennextjs/cloudflare Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

pkg-pr-new bot commented May 5, 2025

Open in StackBlitz

pnpm add https://pkg.pr.new/@opennextjs/cloudflare@639

commit: 05c22c2

Copy link
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

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

We do already have globalThis.__dirname ??= ""; so I am +1 to add this.

Maybe move this addition at the same location earlier in the file?

Thanks!

@conico974 conico974 marked this pull request as ready for review May 6, 2025 06:49
@conico974 conico974 merged commit c4d278e into opennextjs:main May 6, 2025
7 checks passed
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.

3 participants