workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

feat: enable Wrangler to target the staging API by setting WRANGLER_API_ENVIRONMENT=staging

Open petebacondarwin opened this issue 3 years ago • 3 comments

petebacondarwin avatar Sep 16 '22 13:09 petebacondarwin

🦋 Changeset detected

Latest commit: d825e03430ba52fd1e663a1781ddeb816d62739b

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

changeset-bot[bot] avatar Sep 16 '22 13:09 changeset-bot[bot]

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/runs/3689234263/npm-package-wrangler-1869

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/prs/1869/npm-package-wrangler-1869

Or you can use npx with this latest build directly:

npx https://prerelease-registry.devprod.cloudflare.dev/runs/3689234263/npm-package-wrangler-1869 dev path/to/script.js
Additional artifacts:
npm install https://prerelease-registry.devprod.cloudflare.dev/runs/3689234263/npm-package-cloudflare-pages-shared-1869

github-actions[bot] avatar Sep 16 '22 14:09 github-actions[bot]

Codecov Report

Merging #1869 (d825e03) into main (32686e4) will increase coverage by 0.08%. The diff coverage is 73.91%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1869      +/-   ##
==========================================
+ Coverage   71.43%   71.51%   +0.08%     
==========================================
  Files         153      155       +2     
  Lines        9644     9693      +49     
  Branches     2515     2536      +21     
==========================================
+ Hits         6889     6932      +43     
- Misses       2755     2761       +6     
Impacted Files Coverage Δ
packages/wrangler/src/cfetch/index.ts 92.42% <ø> (-0.12%) :arrow_down:
packages/wrangler/src/user/access.ts 80.00% <ø> (+6.82%) :arrow_up:
packages/wrangler/src/user/index.ts 100.00% <ø> (ø)
.../wrangler/src/__tests__/helpers/mock-oauth-flow.ts 65.95% <40.90%> (+0.89%) :arrow_up:
packages/wrangler/src/cfetch/internal.ts 57.01% <60.00%> (-0.38%) :arrow_down:
...ages/wrangler/src/environment-variables/factory.ts 71.42% <71.42%> (ø)
packages/wrangler/src/user/auth-variables.ts 76.92% <76.92%> (ø)
packages/wrangler/src/user/user.tsx 69.76% <88.00%> (+0.55%) :arrow_up:
...wrangler/src/__tests__/helpers/mock-auth-domain.ts 88.88% <88.88%> (ø)
...angler/src/environment-variables/misc-variables.ts 88.88% <88.88%> (ø)
... and 7 more

codecov[bot] avatar Sep 16 '22 14:09 codecov[bot]

Sorry! I realise this PR was opened a while ago, but in the meantime I've added a few cloudflared helper functions that it would be nice if we could use here instead of custom logic

penalosa avatar Dec 12 '22 12:12 penalosa