Skip to content

Commit

Permalink
Support mtls_certificate and browser bindings for Pages (#5712)
Browse files Browse the repository at this point in the history
* support mtls + browser

* Update purple-terms-tell.md
  • Loading branch information
penalosa committed May 13, 2024
1 parent 07733c7 commit 151bc3d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-terms-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": minor
---

feat: Support `mtls_certificates` and `browser` bindings when using `wrangler.toml` with a Pages project
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ describe("validatePagesConfig()", () => {
{ binding: "TEST_AED_BINDING", dataset: "test-dataset" },
],
ai: { binding: "TEST_AI_BINDING" },
browser: { binding: "MY_BROWSER" },
mtls_certificates: [{ binding: "CERT", certificate_id: "some - id" }],
dev: {
ip: "127.0.0.0",
port: 1234,
Expand Down
2 changes: 2 additions & 0 deletions packages/wrangler/src/config/validation-pages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const supportedPagesConfigFields = [
"ai",
"version_metadata",
"dev",
"mtls_certificates",
"browser",
// normalizeAndValidateConfig() sets this value
"configPath",
] as const;
Expand Down

0 comments on commit 151bc3d

Please sign in to comment.