Skip to content

Commit bc51277

Browse files
korinneGregBrimble
andauthored
Update src/content/docs/workers/static-assets/routing/single-page-application.mdx
Co-authored-by: Greg Brimble <[email protected]>
1 parent e2d1786 commit bc51277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/docs/workers/static-assets/routing/single-page-application.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { WranglerConfig, Aside, TypeScriptExample, Render } from "~/components";
1010

1111
Single Page Applications (SPAs) are web applications which are client-side rendered (CSR). They are often built with a framework such as [React](/workers/framework-guides/web-apps/react/), [Vue](/workers/framework-guides/web-apps/vue/) or [Svelte](/workers/framework-guides/web-apps/svelte/). The build process of these frameworks will produce a single `/index.html` file and accompanying client-side resources (e.g. JavaScript bundles, CSS stylesheets, images, fonts, etc.). Typically, data is fetched by the client from an API with client-side requests.
1212

13-
When you configure `single-page-application` mode, Cloudflare provides default routing behavior that automatically serves your `/index.html` file for navigation requests (those with `Sec-Fetch-Mode: navigate` headers). For more control over which paths invoke your Worker, you can use [advanced routing control](#advanced-routing-control).
13+
When you configure `single-page-application` mode, Cloudflare provides default routing behavior that automatically serves your `/index.html` file for navigation requests (those with `Sec-Fetch-Mode: navigate` headers) which don't match any other asset. For more control over which paths invoke your Worker script, you can use [advanced routing control](#advanced-routing-control).
1414

1515
## Configuration
1616

0 commit comments

Comments
 (0)