Skip to content

Commit

Permalink
fix: remove unnecessary flags passed to create-next-app when creati…
Browse files Browse the repository at this point in the history
…ng Next.js apps in experimental mode
  • Loading branch information
dario-piotrowicz committed Feb 24, 2025
1 parent 51a2fd3 commit bbc811a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
9 changes: 9 additions & 0 deletions .changeset/four-mammals-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"create-cloudflare": patch
---

fix: remove unnecessary flags passed to `create-next-app` when creating Next.js apps in experimental mode

This change removes a set of flags that get passed to `create-next-app` that force the generated Next.js
application to have specific settings (e.g. typescript, tailwind, src directory, etc...) which are not
actually mandatory/recommended for the use of the open-next Cloudflare adapter
11 changes: 1 addition & 10 deletions packages/create-cloudflare/templates-experimental/next/c3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@ import type { TemplateConfig } from "../../src/templates";
import type { C3Context } from "types";

const generate = async (ctx: C3Context) => {
await runFrameworkGenerator(ctx, [
ctx.project.name,
"--ts",
"--tailwind",
"--eslint",
"--app",
"--import-alias",
"@/*",
"--src-dir",
]);
await runFrameworkGenerator(ctx, [ctx.project.name]);
};

const configure = async () => {
Expand Down

0 comments on commit bbc811a

Please sign in to comment.