Skip to content

Commit

Permalink
fix: use correct main file in wrangler.toml for astro + workers asset…
Browse files Browse the repository at this point in the history
…s template (#6982)

* fix main in wrangler.toml

* changeset
  • Loading branch information
emily-shen authored Oct 16, 2024
1 parent b5fa4a6 commit 59c66a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/kind-tomatoes-smile.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-cloudflare": patch
---

fix: astro + Workers static assets template now has the correct `main` file in wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "<TBD>"
compatibility_date = "<TBD>"
compatibility_flags = ["nodejs_compat_v2"]
main = "./dist/_worker.js"
main = "./dist/_worker.js/index.js"
assets = { directory = "./dist", binding = "ASSETS" }

# Workers Logs
Expand Down

0 comments on commit 59c66a4

Please sign in to comment.