Skip to content

Commit 379754d

Browse files
korinneemily-shen
andauthored
Update src/content/docs/workers/static-assets/binding.mdx
Co-authored-by: emily-shen <[email protected]>
1 parent 887eef0 commit 379754d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/content/docs/workers/static-assets/binding.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,10 @@ main = "src/index.ts"
7575
[assets]
7676
directory = "./public/"
7777
binding = "ASSETS"
78-
"/api/**", # API calls go to Worker first
79-
"!/api/docs/**" # EXCEPTION: For /api/docs/**, try static assets first
78+
run_worker_first = [
79+
"/api/*", # API calls go to Worker first
80+
"!/api/docs/*" # EXCEPTION: For /api/docs/*, try static assets first
81+
]
8082
```
8183

8284
</WranglerConfig>

0 commit comments

Comments
 (0)