Skip to content

Commit ea5b69f

Browse files
docs: add generic wrangler.toml.example
- Provide template configuration for new deployments - Remove specific domain and namespace IDs - Include instructions for obtaining required values
1 parent bd2a961 commit ea5b69f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

wrangler.toml.example

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name = "your-blog-name"
2+
main = "worker.js"
3+
compatibility_date = "2024-01-01"
4+
5+
# All sensitive data is stored as secrets, not environment variables
6+
# Run: wrangler secret put GITHUB_USER
7+
# Run: wrangler secret put GITHUB_TOKEN
8+
# Run: wrangler secret put SITE_URL
9+
# Run: wrangler secret put SITE_NAME
10+
11+
# KV namespace for caching - replace with your actual namespace ID
12+
# Run: wrangler kv:namespace create "GIST_CACHE" to get your ID
13+
[[kv_namespaces]]
14+
binding = "GIST_CACHE"
15+
id = "YOUR_KV_NAMESPACE_ID"
16+
preview_id = "YOUR_PREVIEW_NAMESPACE_ID"
17+
18+
# Routes for your domain
19+
[[routes]]
20+
pattern = "yourdomain.com/*"
21+
zone_name = "yourdomain.com"

0 commit comments

Comments
 (0)