Skip to content

Commit 022d01a

Browse files
committed
feat: update KV namespace bindings for caching in wrangler.toml
1 parent e13a8c2 commit 022d01a

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

wrangler.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ database_id = "YOUR_DATABASE_ID"
2222

2323
# KV Namespace Bindings - for caching
2424
[[kv_namespaces]]
25-
binding = "CACHE_KV"
26-
id = "YOUR_KV_NAMESPACE_ID"
25+
binding = "bind_stats"
26+
id = "31440109a66e43afb1edb018a6dd7637"
2727

2828
[[kv_namespaces]]
29-
binding = "BADGE_CACHE_KV"
30-
id = "YOUR_BADGE_CACHE_NAMESPACE_ID"
31-
preview_id = "YOUR_BADGE_CACHE_PREVIEW_NAMESPACE_ID"
29+
binding = "bind_stats_cache"
30+
id = "e1c34e6f806c419e885f45607e3b0a84"
31+
preview_id = "e1c34e6f806c419e885f45607e3b0a84"
3232

3333
# Development environment
3434
[env.development]
@@ -43,18 +43,18 @@ UPSTREAM_ORIGIN = ""
4343

4444
[[env.development.d1_databases]]
4545
binding = "DB"
46-
database_name = "github-stats-dev"
47-
database_id = "YOUR_DEV_DATABASE_ID"
46+
database_name = "stats"
47+
database_id = "a2b03b75-e470-480a-acd4-89bad0b42794"
4848

4949
[[env.development.kv_namespaces]]
50-
binding = "CACHE_KV"
51-
id = "YOUR_DEV_KV_NAMESPACE_ID"
52-
preview_id = "YOUR_DEV_KV_PREVIEW_NAMESPACE_ID"
50+
binding = "bind_stats"
51+
id = "31440109a66e43afb1edb018a6dd7637"
52+
preview_id = "31440109a66e43afb1edb018a6dd7637"
5353

5454
[[env.development.kv_namespaces]]
55-
binding = "BADGE_CACHE_KV"
56-
id = "YOUR_DEV_BADGE_CACHE_NAMESPACE_ID"
57-
preview_id = "YOUR_DEV_BADGE_CACHE_PREVIEW_NAMESPACE_ID"
55+
binding = "bind_stats_cache"
56+
id = "e1c34e6f806c419e885f45607e3b0a84"
57+
preview_id = "e1c34e6f806c419e885f45607e3b0a84"
5858

5959
# Production environment
6060
[env.production]
@@ -73,10 +73,10 @@ database_name = "github-stats"
7373
database_id = "YOUR_PROD_DATABASE_ID"
7474

7575
[[env.production.kv_namespaces]]
76-
binding = "CACHE_KV"
77-
id = "YOUR_PROD_KV_NAMESPACE_ID"
76+
binding = "bind_stats"
77+
id = "31440109a66e43afb1edb018a6dd7637"
7878

7979
[[env.production.kv_namespaces]]
80-
binding = "BADGE_CACHE_KV"
81-
id = "YOUR_PROD_BADGE_CACHE_NAMESPACE_ID"
80+
binding = "bind_stats_cache"
81+
id = "e1c34e6f806c419e885f45607e3b0a84"
8282

0 commit comments

Comments
 (0)