Skip to content

Commit

Permalink
refactor(cloudflare): use wrangler deploy instead of publish (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux authored Jul 3, 2023
1 parent 1d0c120 commit 4a20b4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/content/2.deploy/providers/cloudflare.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ npx wrangler dev .output/server/index.mjs --site .output/public --local

### Deploy from your local machine using wrangler

Install [wrangler2](https://github.com/cloudflare/wrangler2) and login to your Cloudflare account:
Install [wrangler](https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler#quick-start) and login to your Cloudflare account:

```bash
npm i wrangler -g
Expand All @@ -72,7 +72,7 @@ wrangler dev .output/server/index.mjs --site .output/public
Publish:

```bash
wrangler publish
wrangler deploy
```

### Deploy within CI/CD using GitHub Actions
Expand Down
2 changes: 1 addition & 1 deletion src/presets/cloudflare-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const cloudflareModule = defineNitroPreset({
entry: "#internal/nitro/entries/cloudflare-module",
commands: {
preview: "npx wrangler dev ./server/index.mjs --site ./public --local",
deploy: "npx wrangler publish",
deploy: "npx wrangler deploy",
},
rollupConfig: {
external: "__STATIC_CONTENT_MANIFEST",
Expand Down
2 changes: 1 addition & 1 deletion src/presets/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const cloudflare = defineNitroPreset({
entry: "#internal/nitro/entries/cloudflare",
commands: {
preview: "npx wrangler dev ./server/index.mjs --site ./public --local",
deploy: "npx wrangler publish",
deploy: "npx wrangler deploy",
},
hooks: {
async compiled(nitro: Nitro) {
Expand Down

0 comments on commit 4a20b4f

Please sign in to comment.