Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
Tanushree Sharma authored and GregBrimble committed Sep 26, 2024
1 parent 0310d78 commit 51b1f63
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/workers/frameworks/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
} from "~/components";

<Description>
Run frontend websites — static or dynamic — directly on Cloudflare's global
Run front-end websites — static or dynamic — directly on Cloudflare's global
network.
</Description>

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/workers/static-assets/binding.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ assets = { directory = "./public"}
## Binding
The assets binding is used in full-stack applications. The [binding](/workers/runtime-apis/bindings) gives you access to the directory of assets from within a Worker.
The assets binding is required when executing a Worker alongside the static assets. The [binding](/workers/runtime-apis/bindings) gives you access to the directory of assets from within a Worker.
```sh title="wrangler.toml"
name = "my-worker"
Expand Down
13 changes: 8 additions & 5 deletions src/content/docs/workers/static-assets/compatibility-matrix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ We plan to bridge the gaps between Workers and Pages and provide ways to migrate
| **Features** | | |
| [Middleware](/pages/functions/middleware/) | ❌ <sup>1</sup> ||
| [Redirects](/pages/configuration/redirects/) | ❌ <sup>2</sup> ||
| [Smart Placement](/workers/configuration/smart-placement/) | <sup>3</sup> ||
| [Smart Placement](/workers/configuration/smart-placement/) | <sup>3</sup> ||
| [Gradual Deployments](/workers/configuration/versions-and-deployments/) |||
| **Observability** | | |
| [Workers Logs](/workers/observability/logs/workers-logs/) |||
| [Logpush](/workers/observability/logging/logpush/) |||
| [Tail Workers](/workers/observability/logging/tail-workers/) | ||
| [Tail Workers](/workers/observability/logging/tail-workers/) | ⏳ <sup>4</sup> ||
| [Real-time logs](/workers/observability/logging/real-time-logs/) |||
| **Bindings** | | |
| [AI](/workers-ai/get-started/workers-wrangler/#2-connect-your-worker-to-workers-ai) |||
Expand All @@ -54,11 +54,14 @@ We plan to bridge the gaps between Workers and Pages and provide ways to migrate

<sup>1</sup> We recommend using [service
bindings](/workers/runtime-apis/bindings/service-bindings/) to connect a Worker
in front of the Worker with assets to run middleware.
in front of the Worker with assets to run middleware. <br />
<sup>2</sup> You can handle redirects by adding code to your Worker, or use
[bulk redirects](/rules/url-forwarding/bulk-redirects/#_top)(only available if
[bulk redirects](/rules/url-forwarding/bulk-redirects/#_top) (only available if
your Worker is running on a [route or custom
domain](/workers/configuration/routing/)).
domain](/workers/configuration/routing/)). <br />
<sup>3</sup> You cannot yet enable [Smart
Placement](/workers/configuration/smart-placement/) projects with static assets.
This is a temporary limitation, we are working to remove it. <br />
<sup>4</sup> You cannot yet add a [Tail
Worker](/workers/observability/logging/tail-workers/) to a project with assets.
This is a temporary limitation, we are working to remove it.
11 changes: 10 additions & 1 deletion src/content/docs/workers/static-assets/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,16 @@ After you have created your Worker, run the [`wrangler dev`](/workers/wrangler/c
npx wrangler dev
```

### 3. Deploy your Project
### 3. Modify your Project

With your new project generated and running, you can begin to write and edit your project:

- The `src/index.ts` file is populated with sample code. Modify the content in the `index.js` to change the Worker.
- The `public/index.html` file is populated with sample code. Modify the content in the `index.html` to change static asset.

Then, save the files and reload the page. Your Project's output will have changed based on your modifications.

### 4. Deploy your Project

Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).

Expand Down

0 comments on commit 51b1f63

Please sign in to comment.