Skip to content

Commit c81269e

Browse files
Update src/content/docs/workers/static-assets/index.mdx
Co-authored-by: Greg Brimble <[email protected]>
1 parent 9cfe963 commit c81269e

File tree

1 file changed

+1
-1
lines changed
  • src/content/docs/workers/static-assets

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export default {
8585

8686
By default, if a requested URL matches a file in the static assets directory, that file will be served — without invoking Worker code. If no matching asset is found and a Worker script is present, the request will be processed by the Worker. The Worker can return a response or choose to defer again to static assets by using the [assets binding](/workers/static-assets/binding/) (e.g. `env.ASSETS.fetch(request)`). If no Worker script is present, a `404 Not Found` response is returned.
8787

88-
The default behavior when neither an asset nor a Worker is found can be changed by setting the [`not_found_handling` option under `assets`](/workers/wrangler/configuration/#assets) in your Wrangler configuration:
88+
The default behavior when neither an asset nor a Worker script is found can be changed by setting the [`not_found_handling` option under `assets`](/workers/wrangler/configuration/#assets) in your Wrangler configuration file:
8989

9090
- `not_found_handling = "single-page-application"`: Sets your application to return `index.html` for unmatched routes. Use this if you have a Single Page Application.
9191
- `not_found_handling = "404-page""`: Sets your application to return `404.html` for unmatched routes.

0 commit comments

Comments
 (0)