Skip to content

Commit ecff983

Browse files
Kiya RoseKiya Rose
authored andcommitted
Try to unify Wrangler interfacing device
1 parent 2a39372 commit ecff983

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

worker/wrangler.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name = "slt-status-worker"
2+
compatibility_date = "2024-05-01"
3+
4+
[[kv_namespaces]]
5+
binding = "STATUS_KV"
6+
id = "d6179b2f901645de81b9805c4e7ac591"
7+
8+
[triggers]
9+
crons = ["* * * * *"]

wrangler.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1-
name = "slt-status-page"
1+
name = "slt-status"
22
compatibility_date = "2024-05-01"
3-
pages_build_output_dir = "./frontend"
3+
4+
# Single-worker + static `site` configuration so `wrangler` publishes both
5+
# the Worker entrypoint and the `frontend/` static files together.
6+
main = "frontend/_worker.js"
7+
8+
[site]
9+
bucket = "./frontend"
10+
include = ["**/*"]
11+
exclude = ["**/.git/*"]
412

513
[vars]
614
# GITHUB_GIST_ID = "" (Set via secrets or vars later)

0 commit comments

Comments
 (0)