Skip to content

Commit f300d76

Browse files
committed
Convert the create next app example to OpenNext
1 parent 8e6be55 commit f300d76

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

examples/create-next-app/open-next.config.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,23 @@
11
import type { OpenNextConfig } from "@opennextjs/aws/types/open-next";
22

33
const config: OpenNextConfig = {
4-
default: {},
4+
default: {
5+
override: {
6+
wrapper: "cloudflare-node",
7+
converter: "edge",
8+
// Unused implementation
9+
incrementalCache: "dummy",
10+
tagCache: "dummy",
11+
queue: "dummy",
12+
},
13+
},
514

615
middleware: {
716
external: true,
817
override: {
9-
wrapper: "cloudflare",
18+
wrapper: "cloudflare-edge",
1019
converter: "edge",
20+
proxyExternalRequest: "fetch",
1121
},
1222
},
1323
};

examples/create-next-app/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#:schema node_modules/wrangler/config-schema.json
22
name = "create-next-app"
3-
main = ".open-next/index.mjs"
3+
main = ".open-next/worker.ts"
44

55
compatibility_date = "2024-09-23"
66
compatibility_flags = ["nodejs_compat"]

0 commit comments

Comments
 (0)