Skip to content

Commit 364b18f

Browse files
committed
updates overview page
1 parent f80ecc7 commit 364b18f

File tree

1 file changed

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

1 file changed

+16
-2
lines changed

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ import {
1616
Description,
1717
InlineBadge,
1818
Icon,
19-
DirectoryListing,
20-
FileTree,
2119
Render,
2220
TabItem,
2321
Tabs,
@@ -28,10 +26,26 @@ import {
2826
Flex,
2927
WranglerConfig,
3028
Steps,
29+
PackageManagers,
3130
} from "~/components";
3231

3332
You can upload static assets (HTML, CSS, images and other files) as part of your Worker, and Cloudflare will handle caching and serving them to web browsers.
3433

34+
**Start from CLI** - Scaffold a React SPA with an API Worker, and use the [Cloudflare Vite plugin](/workers/vite-plugin/).
35+
36+
<PackageManagers
37+
type="create"
38+
pkg="cloudflare@latest"
39+
args="my-react-app --framework=react"
40+
/>
41+
---
42+
43+
**Or just deploy to Cloudflare**
44+
45+
[![Deploy to Workers](https://deploy.workers.cloudflare.com/button)](https://dash.cloudflare.com/?to=/:account/workers-and-pages/create/deploy-to-workers&repository=https://github.com/cloudflare/templates/tree/main/vite-react-template)
46+
47+
Learn more about supported frameworks on Workers.
48+
3549
<LinkCard
3650
title="Supported frameworks"
3751
href="/workers/framework-guides/"

0 commit comments

Comments
 (0)