Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
afbdae65
Unverified
Commit
afbdae65
authored
Oct 28, 2025
by
Jiwon Choi
Committed by
GitHub
Oct 28, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CNA] Do not prompt for Turbopack (#85404)
parent
abec161a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
30 deletions
+0
-30
01-installation.mdx
docs/01-app/01-getting-started/01-installation.mdx
+0
-1
create-next-app.mdx
docs/01-app/03-api-reference/06-cli/create-next-app.mdx
+0
-1
index.ts
packages/create-next-app/index.ts
+0
-28
No files found.
docs/01-app/01-getting-started/01-installation.mdx
View file @
afbdae65
...
@@ -77,7 +77,6 @@ Would you like to use React Compiler? No / Yes
...
@@ -77,7 +77,6 @@ Would you like to use React Compiler? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like your code inside a `src/` directory? No / Yes
Would you like your code inside a `src/` directory? No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to use Turbopack? (recommended) No / Yes
Would you like to customize the import alias (`@/*` by default)? No / Yes
Would you like to customize the import alias (`@/*` by default)? No / Yes
What import alias would you like configured? @/*
What import alias would you like configured? @/*
```
```
...
...
docs/01-app/03-api-reference/06-cli/create-next-app.mdx
View file @
afbdae65
...
@@ -76,7 +76,6 @@ Would you like to use React Compiler? No / Yes
...
@@ -76,7 +76,6 @@ Would you like to use React Compiler? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like to use Tailwind CSS? No / Yes
Would you like your code inside a `src/` directory? No / Yes
Would you like your code inside a `src/` directory? No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to use App Router? (recommended) No / Yes
Would you like to use Turbopack? (recommended) No / Yes
Would you like to customize the import alias (`@/*` by default)? No / Yes
Would you like to customize the import alias (`@/*` by default)? No / Yes
What import alias would you like configured? @/*
What import alias would you like configured? @/*
```
```
...
...
packages/create-next-app/index.ts
View file @
afbdae65
...
@@ -241,7 +241,6 @@ async function run(): Promise<void> {
...
@@ -241,7 +241,6 @@ async function run(): Promise<void> {
importAlias
:
'@/*'
,
importAlias
:
'@/*'
,
customizeImportAlias
:
false
,
customizeImportAlias
:
false
,
empty
:
false
,
empty
:
false
,
turbopack
:
true
,
disableGit
:
false
,
disableGit
:
false
,
reactCompiler
:
false
,
reactCompiler
:
false
,
}
}
...
@@ -261,7 +260,6 @@ async function run(): Promise<void> {
...
@@ -261,7 +260,6 @@ async function run(): Promise<void> {
{
key
:
'tailwind'
,
values
:
{
true
:
'Tailwind CSS'
}
},
{
key
:
'tailwind'
,
values
:
{
true
:
'Tailwind CSS'
}
},
{
key
:
'srcDir'
,
values
:
{
true
:
'src/ dir'
}
},
{
key
:
'srcDir'
,
values
:
{
true
:
'src/ dir'
}
},
{
key
:
'app'
,
values
:
{
true
:
'App Router'
,
false
:
'Pages Router'
}
},
{
key
:
'app'
,
values
:
{
true
:
'App Router'
,
false
:
'Pages Router'
}
},
{
key
:
'turbopack'
,
values
:
{
true
:
'Turbopack'
}
},
]
]
// Helper to format settings for display based on displayConfig
// Helper to format settings for display based on displayConfig
...
@@ -547,32 +545,6 @@ async function run(): Promise<void> {
...
@@ -547,32 +545,6 @@ async function run(): Promise<void> {
}
}
}
}
if
(
!
opts
.
turbopack
&&
!
args
.
includes
(
'--no-turbopack'
)
&&
!
opts
.
webpack
&&
!
opts
.
rspack
)
{
if
(
skipPrompt
)
{
opts
.
turbopack
=
getPrefOrDefault
(
'turbopack'
)
}
else
{
const
styledTurbo
=
blue
(
'Turbopack'
)
const
{
turbopack
}
=
await
prompts
({
onState
:
onPromptState
,
type
:
'toggle'
,
name
:
'turbopack'
,
message
:
`Would you like to use
${
styledTurbo
}
? (recommended)`
,
initial
:
getPrefOrDefault
(
'turbopack'
),
active
:
'Yes'
,
inactive
:
'No'
,
})
opts
.
turbopack
=
Boolean
(
turbopack
)
preferences
.
turbopack
=
Boolean
(
turbopack
)
}
// If Turbopack is not selected, default to Webpack
opts
.
webpack
=
!
opts
.
turbopack
}
const
importAliasPattern
=
/^
[^
*"
]
+
\/\*\s
*$/
const
importAliasPattern
=
/^
[^
*"
]
+
\/\*\s
*$/
if
(
if
(
typeof
opts
.
importAlias
!==
'string'
||
typeof
opts
.
importAlias
!==
'string'
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment