-
Notifications
You must be signed in to change notification settings - Fork 803
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: pass routes
to dev
session
#1213
Conversation
🦋 Changeset detectedLatest commit: 34b64b0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2576019442/npm-package-wrangler-1213 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1213/npm-package-wrangler-1213 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/2576019442/npm-package-wrangler-1213 dev path/to/script.js |
This has problems when there are multiple hosts in the routes, and when different zone_name/zone_id's are provided. Need to work on this some more, moving to draft. |
routes
to dev
sessionroutes
to dev
session
9d9d550
to
a2177cf
Compare
We can pass routes when creating a `dev` session. The effect of this is when you visit a path that _doesn't_ match the given routes, then it instead does a fetch from the deployed worker on that path (if any). We were previously passing `*/*`, i.e, matching _all_ routes in dev; this fix now passes configured routes instead.
a2177cf
to
34b64b0
Compare
Ok, I've tested that this doesn't break if you pass multiple hosts in routes to dev. This looks ready for review. |
routes
to dev
sessionroutes
to dev
session
We can pass routes when creating a
dev
session. The effect of this is when you visit a path that doesn't match the given routes, then it instead does a fetch from the deployed worker on that path (if any). We were previously passing*/*
, i.e, matching all routes in dev; this fix now passes configured routes instead. Based on #1055