-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathwrangler.toml
More file actions
28 lines (25 loc) · 938 Bytes
/
wrangler.toml
File metadata and controls
28 lines (25 loc) · 938 Bytes
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
name = 'fullstackhero'
main = './src/worker.ts'
compatibility_date = '2025-09-23'
compatibility_flags = ['nodejs_compat']
# Workers-with-Static-Assets — replaces `pages_build_output_dir`.
# `wrangler deploy` reads this; `wrangler pages deploy` is being unified
# under Workers in 2025-2026 and this config is the forward-compatible form.
[assets]
directory = './dist'
binding = 'ASSETS'
not_found_handling = '404-page'
# D1 — page view counters. Run once locally to create:
# npx wrangler d1 create fsh-docs-views
# then paste the returned database_id below.
[[d1_databases]]
binding = 'DB'
database_name = 'fsh-docs-views'
database_id = '98427699-353c-4b33-b09e-4cdc782cdd1e'
migrations_dir = './migrations'
# KV — per-IP dedup with 1h TTL. Run once locally to create:
# npx wrangler kv namespace create DEDUPE
# then paste the returned id below.
[[kv_namespaces]]
binding = 'DEDUPE'
id = '66993241e3d14a64945ce8a9d3530cef'