chore: cleanup

This commit is contained in:
Cory Dransfeldt 2024-10-01 17:06:58 -07:00
parent 7caaf7bbcb
commit 55a0f3026a
No known key found for this signature in database
8 changed files with 48 additions and 54 deletions

View file

@ -1,5 +1,5 @@
name = "analytics-worker"
main = "./index.js"
main = "./index.js" # Add this line to specify the entry point
compatibility_date = "2023-01-01"
account_id = "${CF_ACCOUNT_ID}"
@ -8,6 +8,6 @@ workers_dev = true
[env.production]
name = "analytics-worker-production"
routes = [
{ pattern = "coryd.dev/js/script.js", zone_id = "${CF_ZONE_ID}" },
{ pattern = "coryd.dev/js/api/send", zone_id = "${CF_ZONE_ID}" }
{ pattern = "coryd.dev/js/*", zone_id = "${CF_ZONE_ID}" },
{ pattern = "coryd.dev/api/event", zone_id = "${CF_ZONE_ID}" }
]