-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Updates Astro Framework Guide for deploying on Workers #21114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
6b021b4
4b3d8c2
86c6f6e
0c1460e
1bf0179
aaaae80
bce737f
76b2bc7
8ae6677
3ebbf0c
d2d9e0c
b1cf965
391a107
853663a
db44248
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -7,63 +7,171 @@ description: Create an Astro application and deploy it to Cloudflare Workers wit | |||||
|
|
||||||
| import { | ||||||
| Badge, | ||||||
| Details, | ||||||
| Steps, | ||||||
| WranglerConfig, | ||||||
| Description, | ||||||
| InlineBadge, | ||||||
| Render, | ||||||
| TabItem, | ||||||
| Tabs, | ||||||
| PackageManagers, | ||||||
| } from "~/components"; | ||||||
|
|
||||||
| In this guide, you will create a new [Astro](https://astro.build/) application and deploy to Cloudflare Workers (with the new [<InlineBadge preset="beta" /> Workers Assets](/workers/static-assets/)). | ||||||
|
|
||||||
| ## 1. Set up a new project | ||||||
|
|
||||||
| Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate Astro's official setup tool, and provide the option to deploy instantly. | ||||||
|
|
||||||
| To use `create-cloudflare` to create a new Astro project with <InlineBadge preset="beta" /> Workers Assets, run the following command: | ||||||
| **Start from CLI** - scaffold an Astro project on Workers, and pick your template. | ||||||
|
|
||||||
| <PackageManagers | ||||||
| type="create" | ||||||
| pkg="cloudflare@latest my-astro-app" | ||||||
| args={"--framework=astro --platform=workers"} | ||||||
| pkg="cloudflare@latest" | ||||||
| args="my-astro-app -- --framework=astro --platform=workers" | ||||||
| /> | ||||||
|
|
||||||
| <Render | ||||||
| file="c3-post-run-steps" | ||||||
| product="workers" | ||||||
| params={{ | ||||||
| category: "web-framework", | ||||||
| framework: "Astro", | ||||||
| }} | ||||||
| /> | ||||||
| --- | ||||||
|
|
||||||
| After setting up your project, change your directory by running the following command: | ||||||
| **Or just deploy** - create a static blog with Astro and deploy it on Cloudflare Workers. | ||||||
|
||||||
| **Or just deploy** - create a static blog with Astro and deploy it on Cloudflare Workers. | |
| **Or just deploy** - create a static blog with Astro and deploy it on Cloudflare Workers. We'll create a repository, and set up CI/CD and and preview deployments for you, via [Workers Builds](/workers/ci-cd/builds/). |
@korinne @nevikashah @kale-stew - I'm not sure what I'm suggesting is quite right, but directionally — it seems like we have an opportunity to tell people that if they choose this path (here or anywhere else) that they'll get this all setup for them?
Just wondering if people already intuit this or not. Maybe overkill? Your call but just think there is so much you get with going down this path that I'm not quite sure people know is possible otherwise?
Uh oh!
There was an error while loading. Please reload this page.