Workers SDK Issue Reports

← Back to Dashboard

#9915 Worker run fails to use preview resource when using with platform proxy

Recommendation:CLOSE
Difficulty:n/a
Reasoning:

Fixed in PR #10534 (Sep 2025), released in @cloudflare/vite-plugin@1.12.4. Issue filed before fix. Duplicate of #10460.

Suggested Action:

Close with comment explaining fix is available in vite-plugin 1.12.4+

Analysis Report

Issue Review: cloudflare/workers-sdk#9915

Summary

preview_database_id and other preview config values are ignored when using the Cloudflare vite plugin with remote bindings (affects Astro, Remix, and other vite-based integrations).

Findings

  • Created: 2025-07-10
  • Updated: 2025-07-10
  • Version: wrangler ^4.24.0 (but issue is in @cloudflare/vite-plugin)
  • Component: vite-plugin (via @astrojs/cloudflare)
  • Labels: bug
  • Comments: 1 (from reporter)

Key Evidence

  • Duplicate Found: Issue #10460 describes the exact same bug - "Remote bindings not using preview D1 DB" - filed August 24, 2025
  • Maintainer Confirmed: @dario-piotrowicz acknowledged the bug on #10460: "I can confirm that the preview_database_id is incorrectly ignored when using the vite-plugin"
  • Fix Merged: PR #10534 "Fix preview config values not being correctly used with remote bindings in the vite plugin" was merged September 4, 2025
  • Fix Released: @cloudflare/vite-plugin@1.12.4 (current version is 1.21.2)
  • Changelog Entry: "Ensure that if in some remote binding configuration provides a preview value (e.g. preview_database_id for D1 bindings) such value gets used instead of the standard ones"

Recommendation

Status: CLOSE

Reasoning: This issue was filed on July 10, 2025, before the fix was implemented. The identical bug was tracked as #10460, and was fixed in PR #10534, released in @cloudflare/vite-plugin@1.12.4. The fix has been available for over 4 months.

Action: Close as fixed, referencing the fix PR and suggesting the reporter upgrade their dependencies.

Suggested Comment

This issue has been fixed in PR #10534, which was released in @cloudflare/vite-plugin@1.12.4 (September 2025). The same bug was tracked in #10460.

To resolve this, please upgrade your dependencies to use the latest versions:

  • @astrojs/cloudflare (which will pull in the fixed vite-plugin version)
  • or directly @cloudflare/vite-plugin@1.12.4 or later

Closing as fixed. Please reopen if you're still experiencing this issue with the latest versions.

Notes & Feedback (0)

No notes yet.

Add Note