Skip to content

Commit 34a7fdc

Browse files
authored
Gcloud (#99)
* update apple touch icon * replace obsolete gsutil with gcloud storage
1 parent a3a6425 commit 34a7fdc

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.vitepress/config.mts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ export default defineConfig({
55
title: "Protomaps Docs",
66
head: [
77
["link", { rel: "icon", type: "image/png", href: "/favicon.png" }],
8+
["link", { rel: "apple-touch-icon", type: "image/jpg", href:"https://protomaps.com//apple-touch-icon.jpg" }],
89
["meta", { property: "og:image", content: "https://protomaps.com/docs_opengraph.jpg" }]
910
],
1011
description: "Technical Documentation for Protomaps",

pmtiles/cloud-storage.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,13 @@ S3 CORS Configuration:
114114

115115
```
116116
echo '[{"maxAgeSeconds": 300, "method": ["GET", "HEAD"], "origin": ["https://example.com"], "responseHeader": ["range","etag","if-match"]}]' > cors.json
117-
gsutil cors set cors.json gs://my-bucket-name
117+
118+
gcloud storage buckets update gs://my-bucket-name --cors-file=cors.json
118119
```
119120

120-
#### CORS: gsutil tool
121+
#### CORS: gcloud
121122

122-
Install the [gsutil tool](https://cloud.google.com/storage/docs/gsutil_install)
123+
Install the [gcloud CLI](https://cloud.google.com/sdk/docs/install) to set a [CORS Configuration](https://cloud.google.com/storage/docs/cors-configurations):
123124

124125
```json title="cors.json"
125126
[
@@ -133,7 +134,10 @@ Install the [gsutil tool](https://cloud.google.com/storage/docs/gsutil_install)
133134
```
134135

135136
```bash
136-
gsutil cors set gcors.json gs://my-bucket-name
137+
# view CORS settings
138+
gcloud storage buckets describe gs://my-bucket-name --format="default(cors_config)"
139+
140+
gcloud storage buckets update gs://my-bucket-name --cors-file=cors.json
137141
```
138142

139143
### Microsoft Azure

0 commit comments

Comments
 (0)