-
Notifications
You must be signed in to change notification settings - Fork 564
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
Support Cloudflare Access for wrangler dev
#1982
Conversation
🦋 Changeset detectedLatest commit: 6c02ccc 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/3387184900/npm-package-wrangler-1982 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1982/npm-package-wrangler-1982 Or you can use npx https://prerelease-registry.developers.workers.dev/runs/3387184900/npm-package-wrangler-1982 dev path/to/script.js Additional artifacts:npm install https://prerelease-registry.developers.workers.dev/runs/3387184900/npm-package-cloudflare-pages-shared-1982 |
Codecov Report
@@ Coverage Diff @@
## main #1982 +/- ##
==========================================
- Coverage 73.17% 72.97% -0.21%
==========================================
Files 128 131 +3
Lines 8631 8747 +116
Branches 2264 2284 +20
==========================================
+ Hits 6316 6383 +67
- Misses 2315 2364 +49
|
97f220f
to
c0c6cf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very interested in getting this in, is there any particular reason there is no testing around it?
I'm not entirely sure how this could be tested in an automated way. It requires a domain set up for Access, as well as |
Hmmmm, I don't know how I feel pushing this up without testing. We may need to think about a minimal testing for the code (implementation details) or behavior. |
@JacobMGEvans I've added a couple unit tests |
I appreciate the effort in figuring out a way to test this! |
Enable support for
wrangler dev
on Workers behind Cloudflare Access, utilisingcloudflared
. If you don't havecloudflared
installed, Wrangler will prompt you to install it. If you do, then the first time you start developing usingwrangler dev
your default browser will open with a Cloudflare Access prompt.