Skip to content

Commit

Permalink
chore(c3): update Next version in the experimental template (#7743)
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb authored Jan 13, 2025
1 parent b687dff commit 5955dac
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .changeset/eleven-dingos-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"create-cloudflare": patch
---

Update the Next.js experimental template

- Use create-next-app@^14.2.23
- Rename wrangler types output to cloudflare-env.d.ts
2 changes: 1 addition & 1 deletion packages/create-cloudflare/e2e-tests/frameworks.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function getFrameworkTests(opts: {
next: {
testCommitMessage: false,
verifyBuildCfTypes: {
outputFile: "env.d.ts",
outputFile: "cloudflare-env.d.ts",
envInterfaceName: "CloudflareEnv",
},
verifyPreview: {
Expand Down
4 changes: 2 additions & 2 deletions packages/create-cloudflare/templates-experimental/next/c3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default {
// TODO: here we need to specify a version of create-next-app which is different from the
// standard one used in the stable Next.js template, that's because our open-next adapter
// is not yet fully ready for Next.js 15, once it is we should remove the following
frameworkCliPinnedVersion: "14.2.5",
frameworkCliPinnedVersion: "^14.2.23",
platform: "workers",
displayName: "Next.js (using Node.js compat + Workers Assets)",
path: "templates-experimental/next",
Expand All @@ -49,7 +49,7 @@ export default {
scripts: {
deploy: `opennextjs-cloudflare && wrangler deploy`,
preview: `opennextjs-cloudflare && wrangler dev`,
"cf-typegen": `wrangler types --env-interface CloudflareEnv env.d.ts`,
"cf-typegen": `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`,
},
}),
devScript: "dev",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Generated by Wrangler
// by running `wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts`

interface CloudflareEnv {
}

This file was deleted.

0 comments on commit 5955dac

Please sign in to comment.