Skip to content

Commit d2d9e0c

Browse files
committed
fixups
1 parent 3ebbf0c commit d2d9e0c

File tree

1 file changed

+4
-2
lines changed
  • src/content/docs/workers/frameworks/framework-guides

1 file changed

+4
-2
lines changed

src/content/docs/workers/frameworks/framework-guides/astro.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import {
2222

2323
<PackageManagers
2424
type="create"
25-
pkg="cloudflare@latest"
26-
args="my-astro-app -- --framework=astro --platform=workers"
25+
pkg="cloudflare@latest my-astro-app"
26+
args="--framework=astro --platform=workers"
2727
/>
2828

2929
---
@@ -97,6 +97,8 @@ If your Astro project is entirely pre-rendered, follow these steps:
9797
<Details header="What's this configuration doing?">
9898
The key part of this config is the `assets` field, which tells Wrangler where to find your static assets. In this case, we're telling Wrangler to look in the `./dist` directory. If your assets are in a different directory, update the `directory` value accordingly.
9999
Read about other [asset configuration options](/workers/static-assets/routing/).
100+
101+
Also note how there's no `main` field in this config - this is because you're only serving static assets, so no Worker code is needed for server-side rendering.
100102
</Details>
101103

102104
2. **Build and deploy your project**

0 commit comments

Comments
 (0)