Skip to content

Commit 5955dac

Browse files
authored
chore(c3): update Next version in the experimental template (#7743)
1 parent b687dff commit 5955dac

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.changeset/eleven-dingos-scream.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Update the Next.js experimental template
6+
7+
- Use create-next-app@^14.2.23
8+
- Rename wrangler types output to cloudflare-env.d.ts

packages/create-cloudflare/e2e-tests/frameworks.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function getFrameworkTests(opts: {
182182
next: {
183183
testCommitMessage: false,
184184
verifyBuildCfTypes: {
185-
outputFile: "env.d.ts",
185+
outputFile: "cloudflare-env.d.ts",
186186
envInterfaceName: "CloudflareEnv",
187187
},
188188
verifyPreview: {

packages/create-cloudflare/templates-experimental/next/c3.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default {
3636
// TODO: here we need to specify a version of create-next-app which is different from the
3737
// standard one used in the stable Next.js template, that's because our open-next adapter
3838
// is not yet fully ready for Next.js 15, once it is we should remove the following
39-
frameworkCliPinnedVersion: "14.2.5",
39+
frameworkCliPinnedVersion: "^14.2.23",
4040
platform: "workers",
4141
displayName: "Next.js (using Node.js compat + Workers Assets)",
4242
path: "templates-experimental/next",
@@ -49,7 +49,7 @@ export default {
4949
scripts: {
5050
deploy: `opennextjs-cloudflare && wrangler deploy`,
5151
preview: `opennextjs-cloudflare && wrangler dev`,
52-
"cf-typegen": `wrangler types --env-interface CloudflareEnv env.d.ts`,
52+
"cf-typegen": `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`,
5353
},
5454
}),
5555
devScript: "dev",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// Generated by Wrangler
2+
// by running `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`
3+
4+
interface CloudflareEnv {
5+
}

packages/create-cloudflare/templates-experimental/next/templates/env.d.ts

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)