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 compatibility for @astrojs/db with cloudflare #10677

Merged
merged 3 commits into from
Apr 4, 2024
Merged

Conversation

matthewp
Copy link
Contributor

@matthewp matthewp commented Apr 4, 2024

Changes

Testing

  • Not wanting to test Cloudflare directly.
  • Existing tests should cover Node compat, both Windows and Unix.

Docs

N/A, bug fix

Copy link

changeset-bot bot commented Apr 4, 2024

🦋 Changeset detected

Latest commit: 3ddb393

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

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
Member

@alexanderniebuhr alexanderniebuhr left a comment

Choose a reason for hiding this comment

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

The 3rd party package url-file-url uses path in their source code. So this will change the error during build from url to path. But it will still be an error for users without further configuration.

While Cloudflare supports node:path imports when enabled the nodejs_compat flag, the package still doesn't use node: import prefixes.

Copy link
Member

@alexanderniebuhr alexanderniebuhr left a comment

Choose a reason for hiding this comment

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

Not tested with a live deployment, but given my CF experience, I'm confident this should work.

@matthewp matthewp merged commit 1662aa8 into main Apr 4, 2024
14 checks passed
@matthewp matthewp deleted the db-cloudflare branch April 4, 2024 16:42
@astrobot-houston astrobot-houston mentioned this pull request Apr 4, 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.

Astro DB build fails with Cloudflare adapter
2 participants