-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy pathwrangler.toml.example
42 lines (36 loc) · 1.64 KB
/
wrangler.toml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#:schema node_modules/wrangler/config-schema.json
name = "penx-blog"
compatibility_date = "2024-12-05"
compatibility_flags = ["nodejs_compat"]
pages_build_output_dir = ".vercel/output/static"
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Docs:
# - https://developers.cloudflare.com/pages/functions/bindings/#environment-variables
# Note: Use secrets to store sensitive data.
# - https://developers.cloudflare.com/pages/functions/bindings/#secrets
[vars]
SESSION_PASSWORD = "complex_password_at_least_32_characters_long" # https://generate-secret.vercel.app/64
# Bind the Workers AI model catalog. Run machine learning models, powered by serverless GPUs, on Cloudflare’s global network
# Docs: https://developers.cloudflare.com/pages/functions/bindings/#workers-ai
[ai]
binding = "AI"
# Bind a D1 database. D1 is Cloudflare’s native serverless SQL database.
# Docs: https://developers.cloudflare.com/pages/functions/bindings/#d1-databases
#
# npx wrangler d1 create penx-blog
[[d1_databases]]
binding = "DB"
database_name = "penx-blog"
database_id = "<database_id>" # replace with real database id
# Bind an R2 Bucket. Use R2 to store arbitrarily large blobs of data, such as files.
# Docs: https://developers.cloudflare.com/pages/functions/bindings/#r2-buckets
# npx wrangler r2 bucket create penx-bucket
[[r2_buckets]]
binding = "BUCKET"
bucket_name = "<bucket_name>"
# Bind a KV Namespace. Use KV as persistent storage for small key-value pairs.
# Docs: https://developers.cloudflare.com/pages/functions/bindings/#kv-namespaces
# npx wrangler kv namespace create penx-kv
[[kv_namespaces]]
binding = "KV"
id = "<kv_id>"