-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy pathwrangler.toml
More file actions
23 lines (21 loc) · 851 Bytes
/
Copy pathwrangler.toml
File metadata and controls
23 lines (21 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 (`views`) and per-IP+UA 1h dedup (`seen`).
# Dedup used to live in KV; it moved to D1 because the KV free tier caps
# writes at 1,000/day. 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'