Skip to content

Commit

Permalink
Added Oceania (oc) location hint as acceptable choice when creating a…
Browse files Browse the repository at this point in the history
…n R2 bucket. (#7330)
  • Loading branch information
jonesphillip authored Nov 25, 2024
1 parent 68b1758 commit 219109a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-dragons-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"wrangler": patch
---

Added Oceania (oc) location hint as acceptable choice when creating an R2 bucket.
4 changes: 2 additions & 2 deletions packages/wrangler/src/__tests__/r2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe("r2", () => {
-v, --version Show version number [boolean]
OPTIONS
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\"]
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\", \\"oc\\"]
-s, --storage-class The default storage class for objects uploaded to this bucket [string]
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]"
`);
Expand Down Expand Up @@ -280,7 +280,7 @@ describe("r2", () => {
-v, --version Show version number [boolean]
OPTIONS
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\"]
--location The optional location hint that determines geographic placement of the R2 bucket [string] [choices: \\"weur\\", \\"eeur\\", \\"apac\\", \\"wnam\\", \\"enam\\", \\"oc\\"]
-s, --storage-class The default storage class for objects uploaded to this bucket [string]
-J, --jurisdiction The jurisdiction where the new bucket will be created [string]"
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/r2/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
* The maximum file size we can upload using the V4 API.
*/
export const MAX_UPLOAD_SIZE = 300 * 1024 * 1024;
export const LOCATION_CHOICES = ["weur", "eeur", "apac", "wnam", "enam"];
export const LOCATION_CHOICES = ["weur", "eeur", "apac", "wnam", "enam", "oc"];

0 comments on commit 219109a

Please sign in to comment.