Skip to content

Adds draft docs for connecting to remote resources during local dev (hybrid dev) #22940

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

Merged
merged 12 commits into from
Jun 18, 2025

Conversation

korinne
Copy link
Contributor

@korinne korinne commented Jun 5, 2025

Summary

Starting the draft docs for connecting to remote resources during local development.

###To do

  • Need to update Environments page to talk about how you can configure remote: true differently across environments. Ex: You can wrangler dev --env staging with bindings configured with remote: true
  • I probably need to change remote : true to "remote" : true (thought this is wrangler.json specific -- wrangler.toml would be remote = true
  • Add full API reference @penalosa and @dario-piotrowicz would love help
  • We'll need to separate update all the config docs and other relevant pages
  • Might be good to have a use-cases / examples section
  • Update the matrix for per-binding remote connections

Copy link
Contributor

github-actions bot commented Jun 5, 2025

This PR changes current filenames or deletes current files. Make sure you have redirects set up to cover the following paths:

  • /workers/local-development/bindings-per-env/
  • /workers/local-development/environment-variables/
  • /workers/local-development/local-data/
  • /workers/local-development/
  • /workers/local-development/remote-data/

Copy link
Contributor

hyperlint-ai bot commented Jun 5, 2025

Howdy and thanks for contributing to our repo. The Cloudflare team reviews new, external PRs within two (2) weeks. If it's been two weeks or longer without any movement, please tag the PR Assignees in a comment.

We review internal PRs within 1 week. If it's something urgent or has been sitting without a comment, start a thread in the Developer Docs space internally.


PR Change Summary

Draft documentation for connecting to remote resources during local development has been initiated, including guidelines for configuration and usage.

  • Started draft documentation for connecting to remote resources during local development.
  • Outlined configuration changes needed for different environments.
  • Introduced a new section on connecting to remote resources with examples.
  • Added a comparison guide for choosing between Wrangler and Vite.

Modified Files

  • src/content/docs/workers/local-development/index.mdx
  • src/content/docs/workers/local-development/local-data.mdx

Added Files

  • src/content/docs/workers/local-development/wrangler-vs-vite.mdx

How can I customize these reviews?

Check out the Hyperlint AI Reviewer docs for more information on how to customize the review.

If you just want to ignore it on this PR, you can add the hyperlint-ignore label to the PR. Future changes won't trigger a Hyperlint review.

Note specifically for link checks, we only check the first 30 links in a file and we cache the results for several hours (for instance, if you just added a page, you might experience this). Our recommendation is to add hyperlint-ignore to the PR to ignore the link check for this PR.

Copy link
Contributor

github-actions bot commented Jun 5, 2025

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/public/__redirects @GregBrimble, @KianNH, @pedrosousa, @WalshyDev, @cloudflare/pcx-technical-writing
/src/content/docs/cloudflare-for-platforms/workers-for-platforms/ @irvinebroque, @angelampcosta, @GregBrimble, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing
/src/content/docs/d1/ @elithrar, @rozenmd, @vy-ton, @joshthoward, @oxyjun, @harshil1712, @cloudflare/pcx-technical-writing
/src/content/docs/durable-objects/ @elithrar, @vy-ton, @joshthoward, @oxyjun, @harshil1712, @mikenomitch, @cloudflare/pcx-technical-writing, @cloudflare/workers-runtime-1
/src/content/docs/pages/ @cloudflare/workers-docs, @GregBrimble, @WalshyDev, @aninibread, @irvinebroque, @cloudflare/pcx-technical-writing, @kodster28
/src/content/docs/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @kodster28, @cloudflare/wrangler, @cloudflare/workers-runtime-1, @cloudflare/wrangler
/src/content/docs/workers/observability/ @irvinebroque, @mikenomitch, @rohinlohe, @kodster28, @cloudflare/pcx-technical-writing
/src/content/docs/workers/static-assets @irvinebroque, @GregBrimble, @WalshyDev, @kodster28, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing
/src/content/docs/workers/wrangler/ @cloudflare/wrangler, @irvinebroque, @kodster28, @cloudflare/pcx-technical-writing, @cloudflare/workers-runtime-1
/src/content/partials/workers/ @cloudflare/workers-docs, @GregBrimble, @irvinebroque, @mikenomitch, @WalshyDev, @cloudflare/deploy-config, @cloudflare/pcx-technical-writing, @kodster28, @cloudflare/wrangler, @cloudflare/workers-runtime-1, @cloudflare/wrangler

Copy link
Contributor

github-actions bot commented Jun 5, 2025

Preview URL: https://4cd35739.preview.developers.cloudflare.com
Preview Branch URL: https://korinne-hybrid-dev.preview.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/workers/development-testing/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/
https://developers.cloudflare.com/workers/local-development/remote-data/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/local-development/remote-data/
https://developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/get-started/developing-with-wrangler/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/cloudflare-for-platforms/workers-for-platforms/get-started/developing-with-wrangler/
https://developers.cloudflare.com/workers/development-testing/wrangler-vs-vite/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/wrangler-vs-vite/
https://developers.cloudflare.com/workers/development-testing/local-data/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/local-data/
https://developers.cloudflare.com/workers/development-testing/testing/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/testing/
https://developers.cloudflare.com/workers/development-testing/vite-plugin/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/vite-plugin/
https://developers.cloudflare.com/pages/functions/wrangler-configuration/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/pages/functions/wrangler-configuration/
https://developers.cloudflare.com/workers/wrangler/configuration/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/wrangler/configuration/
https://developers.cloudflare.com/pages/functions/bindings/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/pages/functions/bindings/
https://developers.cloudflare.com/workers/development-testing/bindings-per-env/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/development-testing/bindings-per-env/
https://developers.cloudflare.com/workers/wrangler/commands/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/wrangler/commands/
https://developers.cloudflare.com/d1/observability/debug-d1/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/d1/observability/debug-d1/
https://developers.cloudflare.com/durable-objects/reference/environments/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/durable-objects/reference/environments/
https://developers.cloudflare.com/workers/get-started/dashboard/ https://korinne-hybrid-dev.preview.developers.cloudflare.com/workers/get-started/dashboard/

@JohnDaWalka

This comment was marked as spam.

@JohnDaWalka

This comment was marked as spam.

@JohnDaWalka

This comment was marked as spam.

@github-actions github-actions bot added size/l and removed size/m labels Jun 12, 2025
@korinne korinne marked this pull request as ready for review June 12, 2025 07:58
@github-actions github-actions bot added product:cloudflare-for-platforms product:d1 D1: https://developers.cloudflare.com/d1/ product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ product:pages labels Jun 17, 2025
korinne and others added 2 commits June 18, 2025 08:07
…s/get-started/developing-with-wrangler.mdx

Co-authored-by: Dario Piotrowicz <[email protected]>
…s/get-started/developing-with-wrangler.mdx

Co-authored-by: Dario Piotrowicz <[email protected]>
Copy link
Contributor

@kodster28 kodster28 left a comment

Choose a reason for hiding this comment

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

Flagged the redirects that are needed.

> ```
>
> This command allows you to develop against remote resources and data stored on Cloudflare's network.
## Local development
Copy link
Contributor

Choose a reason for hiding this comment

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

Depending on how many places this is pulled in, you should be careful with headings in partials.

@korinne korinne enabled auto-merge (squash) June 18, 2025 16:39
@korinne korinne merged commit bd9932d into production Jun 18, 2025
10 checks passed
@korinne korinne deleted the korinne-hybrid-dev branch June 18, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product:cloudflare-for-platforms product:d1 D1: https://developers.cloudflare.com/d1/ product:durable-objects Durable Objects: https://developers.cloudflare.com/workers/learning/using-durable-objects/ product:pages product:workers Related to Workers product size/l
Projects
None yet
Development

Successfully merging this pull request may close these issues.