Skip to content

Fix Astro DB remote builds with Cloudflare adapter#16939

Open
astrobot-houston wants to merge 1 commit into
mainfrom
flue/fix-16738
Open

Fix Astro DB remote builds with Cloudflare adapter#16939
astrobot-houston wants to merge 1 commit into
mainfrom
flue/fix-16738

Conversation

@astrobot-houston
Copy link
Copy Markdown
Contributor

Changes

  • Filters out Cloudflare vite plugins from the temporary Vite server created by Astro DB during astro build --remote
  • Prevents the Cloudflare workerd runtime from eagerly loading the manifest placeholder and crashing with "Invalid URL string"
  • Extracts a filterPluginsForTempServer() utility to handle plugin filtering for the temp server

Testing

  • Added packages/db/test/unit/filter-plugins.test.ts with 7 test cases covering plugin filtering edge cases
  • Full DB unit test suite (52 tests) passes with no regressions
  • Fix confirmed working by issue reporter @fkatsuhiro

Docs

  • No docs update needed, this is a bug fix that restores expected functionality

Closes #16738

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 1, 2026

🦋 Changeset detected

Latest commit: 9739595

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

This PR includes changesets to release 14 packages
Name Type
@astrojs/db Patch
@e2e/actions-blog Patch
@e2e/actions-react-19 Patch
@test/db-aliases Patch
@test/db-db-in-src Patch
@test/error-handling Patch
@test/db-integration-only Patch
@test/db-integration Patch
@test/db-libsql-remote Patch
@test/db-local-prod Patch
@test/db-no-apptoken Patch
@test/db-no-seed Patch
@test/recipes Patch
@test/db-static-remote 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

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 1, 2026

⚠️ Package Trust Level Decreased

Caution

Decreased trust levels may indicate a higher risk of supply chain attacks. Please review these changes carefully.

📦 Package 🔒 Before 🔓 After
@emnapi/wasi-threads trusted-with-provenance none
espree trusted-with-provenance provenance
@opentelemetry/core trusted-with-provenance provenance
@opentelemetry/instrumentation trusted-with-provenance provenance
@opentelemetry/resources trusted-with-provenance provenance
@opentelemetry/sdk-trace-node trusted-with-provenance provenance
@opentelemetry/api-logs trusted-with-provenance provenance
@opentelemetry/context-async-hooks trusted-with-provenance provenance
@opentelemetry/semantic-conventions trusted-with-provenance provenance
require-in-the-middle trusted-with-provenance none
@opentelemetry/sdk-trace-base trusted-with-provenance provenance
eslint-scope trusted-with-provenance provenance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix verified Reporter confirmed the triage bot fix works

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Astro DB remote build fails with Cloudflare adapter: serializedManifest.rootDir is undefined in workerd runner

1 participant