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

Warn that Hyperdrive bindings do not yet work in local dev #4144

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/tall-dodos-join.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Log a warning when using a Hyperdrive binding in local wrangler dev
6 changes: 6 additions & 0 deletions packages/wrangler/src/dev/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,12 @@ function DevSession(props: DevSessionProps) {
);
}

if (props.local && props.bindings.hyperdrive?.length) {
logger.warn(
"Hyperdrive does not currently support 'wrangler dev' in local mode at this stage of the beta. Use the '--remote' flag to test a Hyperdrive configuration before deploying."
);
}

const announceAndOnReady: typeof props.onReady = (finalIp, finalPort) => {
if (process.send) {
process.send(
Expand Down
Loading