Skip to content

Commit edd97c3

Browse files
committed
Update deploy command docs
1 parent 1aa9217 commit edd97c3

File tree

9 files changed

+233
-6
lines changed

9 files changed

+233
-6
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

@@ -65,3 +67,5 @@ Your Nuxt application can be fully integrated with the Cloudflare Developer Plat
6567
## Static assets
6668

6769
You can serve static assets your Nuxt application by placing them in [the `./public/` directory](https://nuxt.com/docs/guide/directory-structure/public). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
70+
71+
<Render file="workers-assets-routing-summary" />
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
pcx_content_type: how-to
3+
title: Qwik
4+
sidebar:
5+
badge: Beta
6+
head: []
7+
description: Create a Qwik application and deploy it to Cloudflare Workers with Workers Assets.
8+
---
9+
10+
import {
11+
Badge,
12+
Description,
13+
InlineBadge,
14+
Render,
15+
PackageManagers,
16+
} from "~/components";
17+
18+
In this guide, you will create a new [Qwik](https://qwik.dev/) application and deploy to Cloudflare Workers (with the new [<InlineBadge preset="beta" /> Workers Assets](/workers/configuration/assets/)).
19+
20+
## 1. Set up a new project
21+
22+
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 Qwik's official setup tool, and provide the option to deploy instantly.
23+
24+
To use `create-cloudflare` to create a new Qwik project with <InlineBadge preset="beta" /> Workers Assets, run the following command:
25+
26+
<PackageManagers
27+
type="create"
28+
pkg="cloudflare@latest my-qwik-app"
29+
args={"--framework=qwik --experimental"}
30+
/>
31+
32+
<Render
33+
file="c3-post-run-steps"
34+
product="workers"
35+
params={{
36+
category: "web-framework",
37+
framework: "Qwik",
38+
}}
39+
/>
40+
41+
After setting up your project, change your directory by running the following command:
42+
43+
```sh
44+
cd my-qwik-app
45+
```
46+
47+
## 2. Develop locally
48+
49+
After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.
50+
51+
<PackageManagers type="run" args={"dev"} />
52+
53+
## 3. Deploy your Project
54+
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
58+
59+
<PackageManagers type="run" args={"deploy"} />
60+
61+
---
62+
63+
## Bindings
64+
65+
Your Qwik application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [Qwik documentation](https://qwik.dev/docs/deployments/cloudflare-pages/#context) provides information about configuring bindings and how you can access them in your Qwik endpoint methods.
66+
67+
## Static assets
68+
69+
You can serve static assets your Qwik application by placing them in [the `./public/` directory](https://qwik.dev/docs/advanced/static-assets/). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
70+
71+
<Render file="workers-assets-routing-summary" />

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ After you have created your project, run the following command in the project di
5252

5353
## 3. Deploy your Project
5454

55-
Deploy your Worker via Wrangler to a `*.workers.dev` subdomain or configure a [Custom Domain](/workers/configuration/routing/custom-domains/).
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
5658

5759
<PackageManagers type="run" args={"deploy"} />
5860

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
pcx_content_type: how-to
3+
title: Solid
4+
sidebar:
5+
badge: Beta
6+
head: []
7+
description: Create a Solid application and deploy it to Cloudflare Workers with Workers Assets.
8+
---
9+
10+
import {
11+
Badge,
12+
Description,
13+
InlineBadge,
14+
Render,
15+
PackageManagers,
16+
} from "~/components";
17+
18+
In this guide, you will create a new [Solid](https://www.solidjs.com/) application and deploy to Cloudflare Workers (with the new [<InlineBadge preset="beta" /> Workers Assets](/workers/configuration/assets/)).
19+
20+
## 1. Set up a new project
21+
22+
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 Solid's official setup tool, and provide the option to deploy instantly.
23+
24+
To use `create-cloudflare` to create a new Solid project with <InlineBadge preset="beta" /> Workers Assets, run the following command:
25+
26+
<PackageManagers
27+
type="create"
28+
pkg="cloudflare@latest my-solid-app"
29+
args={"--framework=solid --experimental"}
30+
/>
31+
32+
<Render
33+
file="c3-post-run-steps"
34+
product="workers"
35+
params={{
36+
category: "web-framework",
37+
framework: "Solid",
38+
}}
39+
/>
40+
41+
After setting up your project, change your directory by running the following command:
42+
43+
```sh
44+
cd my-solid-app
45+
```
46+
47+
## 2. Develop locally
48+
49+
After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.
50+
51+
<PackageManagers type="run" args={"dev"} />
52+
53+
## 3. Deploy your Project
54+
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
58+
59+
<PackageManagers type="run" args={"deploy"} />
60+
61+
---
62+
63+
## Bindings
64+
65+
Your Solid application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [Solid documentation](https://docs.solidjs.com/reference/server-utilities/get-request-event) provides information about how to access platform primitives, including bindings. Specifically, for Cloudflare, you can use [`getRequestEnv().nativeEvent.context.cloudflare.env`](https://docs.solidjs.com/solid-start/advanced/request-events#nativeevent) to access bindings.
66+
67+
## Static assets
68+
69+
You can serve static assets your Solid application by placing them in [the `./public/` directory](https://docs.solidjs.com/solid-start/building-your-application/static-assets). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
70+
71+
<Render file="workers-assets-routing-summary" />
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
pcx_content_type: how-to
3+
title: Svelte
4+
sidebar:
5+
badge: Beta
6+
head: []
7+
description: Create a Svelte application and deploy it to Cloudflare Workers with Workers Assets.
8+
---
9+
10+
import {
11+
Badge,
12+
Description,
13+
InlineBadge,
14+
Render,
15+
PackageManagers,
16+
} from "~/components";
17+
18+
In this guide, you will create a new [Svelte](https://svelte.dev/) application and deploy to Cloudflare Workers (with the new [<InlineBadge preset="beta" /> Workers Assets](/workers/configuration/assets/)).
19+
20+
## 1. Set up a new project
21+
22+
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 Svelte's official setup tool, and provide the option to deploy instantly.
23+
24+
To use `create-cloudflare` to create a new Svelte project with <InlineBadge preset="beta" /> Workers Assets, run the following command:
25+
26+
<PackageManagers
27+
type="create"
28+
pkg="cloudflare@latest my-svelte-app"
29+
args={"--framework=svelte --experimental"}
30+
/>
31+
32+
<Render
33+
file="c3-post-run-steps"
34+
product="workers"
35+
params={{
36+
category: "web-framework",
37+
framework: "Svelte",
38+
}}
39+
/>
40+
41+
After setting up your project, change your directory by running the following command:
42+
43+
```sh
44+
cd my-svelte-app
45+
```
46+
47+
## 2. Develop locally
48+
49+
After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.
50+
51+
<PackageManagers type="run" args={"dev"} />
52+
53+
## 3. Deploy your Project
54+
55+
Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including Cloudflare's own.
56+
57+
The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/build-configuration/#build-settings) configuration appropriately.
58+
59+
<PackageManagers type="run" args={"deploy"} />
60+
61+
---
62+
63+
## Bindings
64+
65+
Your Svelte application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [Svelte documentation](https://kit.svelte.dev/docs/adapter-cloudflare#runtime-apis) provides information about configuring bindings and how you can access them in your Svelte hooks and endpoints.
66+
67+
## Static assets
68+
69+
You can serve static assets your Svelte application by placing them in [the `./static/` directory](https://kit.svelte.dev/docs/project-structure#project-files-static). This can be useful for resource files such as images, stylesheets, fonts, and manifests.
70+
71+
<Render file="workers-assets-routing-summary" />

0 commit comments

Comments
 (0)