Skip to content

Commit 24fa5a9

Browse files
remove getting started info from README and redirect to official docs
1 parent e6efd73 commit 24fa5a9

File tree

1 file changed

+1
-59
lines changed

1 file changed

+1
-59
lines changed

packages/cloudflare/README.md

Lines changed: 1 addition & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -6,65 +6,7 @@ Deploy Next.js apps to Cloudflare!
66

77
## Get started
88

9-
You can use [`create-next-app`](https://nextjs.org/docs/pages/api-reference/cli/create-next-app) to start a new application or take an existing Next.js application and deploy it to Cloudflare using the following few steps:
10-
11-
## Configure your app
12-
13-
- add the following `devDependencies` to the `package.json`:
14-
15-
```bash
16-
npm add -D wrangler@latest @opennextjs/cloudflare
17-
# or
18-
pnpm add -D wrangler@latest @opennextjs/cloudflare
19-
# or
20-
yarn add -D wrangler@latest @opennextjs/cloudflare
21-
# or
22-
bun add -D wrangler@latest @opennextjs/cloudflare
23-
```
24-
25-
- add a `wrangler.toml` at the root of your project
26-
27-
```toml
28-
#:schema node_modules/wrangler/config-schema.json
29-
name = "<your-app-name>"
30-
main = ".open-next/worker.js"
31-
32-
compatibility_date = "2024-09-23"
33-
compatibility_flags = ["nodejs_compat"]
34-
35-
# Use the new Workers + Assets to host the static frontend files
36-
assets = { directory = ".open-next/assets", binding = "ASSETS" }
37-
```
38-
39-
- add a `open-next.config.ts` at the root of your project:
40-
41-
```ts
42-
import type { OpenNextConfig } from "open-next/types/open-next";
43-
44-
const config: OpenNextConfig = {
45-
default: {
46-
override: {
47-
wrapper: "cloudflare-node",
48-
converter: "edge",
49-
// Unused implementation
50-
incrementalCache: "dummy",
51-
tagCache: "dummy",
52-
queue: "dummy",
53-
},
54-
},
55-
56-
middleware: {
57-
external: true,
58-
override: {
59-
wrapper: "cloudflare-edge",
60-
converter: "edge",
61-
proxyExternalRequest: "fetch",
62-
},
63-
},
64-
};
65-
66-
export default config;
67-
```
9+
To get started with the adapter visit the [official get started documentation](https://opennext.js.org/cloudflare/get-started).
6810

6911
## Known issues
7012

0 commit comments

Comments
 (0)