Skip to content
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

Added Oceania (oc) location hint as acceptable choice when creating an R2 bucket. #7330

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"];
Loading