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
ba8a94d2
Unverified
Commit
ba8a94d2
authored
Dec 01, 2025
by
Niklas Mischkulnig
Committed by
GitHub
Dec 01, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turbopack: process.env.TURBOPACK should be a string (#86680)
`process.env.FOO` are always strings, this should be as well.
parent
21d328dc
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
context.rs
crates/next-core/src/next_server/context.rs
+1
-1
contexts.rs
turbopack/crates/turbopack-cli/src/contexts.rs
+1
-1
execution.rs
turbopack/crates/turbopack-tests/tests/execution.rs
+1
-1
snapshot.rs
turbopack/crates/turbopack-tests/tests/snapshot.rs
+1
-1
evaluate_context.rs
turbopack/crates/turbopack/src/evaluate_context.rs
+2
-2
No files found.
crates/next-core/src/next_server/context.rs
View file @
ba8a94d2
...
@@ -419,7 +419,7 @@ pub async fn get_tracing_compile_time_info() -> Result<Vc<CompileTimeInfo>> {
...
@@ -419,7 +419,7 @@ pub async fn get_tracing_compile_time_info() -> Result<Vc<CompileTimeInfo>> {
*/
*/
.defines
(
.defines
(
compile_time_defines!
(
compile_time_defines!
(
process
.env.TURBOPACK
=
true
,
process
.env.TURBOPACK
=
"1"
,
// process.env.NODE_ENV = "production",
// process.env.NODE_ENV = "production",
)
)
.resolved_cell
(),
.resolved_cell
(),
...
...
turbopack/crates/turbopack-cli/src/contexts.rs
View file @
ba8a94d2
...
@@ -188,7 +188,7 @@ pub fn get_client_asset_context(
...
@@ -188,7 +188,7 @@ pub fn get_client_asset_context(
fn
client_defines
(
node_env
:
&
NodeEnv
)
->
CompileTimeDefines
{
fn
client_defines
(
node_env
:
&
NodeEnv
)
->
CompileTimeDefines
{
compile_time_defines!
(
compile_time_defines!
(
process
.turbopack
=
true
,
process
.turbopack
=
true
,
process
.env.TURBOPACK
=
true
,
process
.env.TURBOPACK
=
"1"
,
process
.env.NODE_ENV
=
node_env
.to_string
()
process
.env.NODE_ENV
=
node_env
.to_string
()
)
)
}
}
...
...
turbopack/crates/turbopack-tests/tests/execution.rs
View file @
ba8a94d2
...
@@ -359,7 +359,7 @@ async fn run_test_operation(prepared_test: ResolvedVc<PreparedTest>) -> Result<V
...
@@ -359,7 +359,7 @@ async fn run_test_operation(prepared_test: ResolvedVc<PreparedTest>) -> Result<V
.defines
(
.defines
(
compile_time_defines!
(
compile_time_defines!
(
process
.turbopack
=
true
,
process
.turbopack
=
true
,
process
.env.TURBOPACK
=
true
,
process
.env.TURBOPACK
=
"1"
,
process
.env.NODE_ENV
=
"production"
,
process
.env.NODE_ENV
=
"production"
,
)
)
.resolved_cell
(),
.resolved_cell
(),
...
...
turbopack/crates/turbopack-tests/tests/snapshot.rs
View file @
ba8a94d2
...
@@ -291,7 +291,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> {
...
@@ -291,7 +291,7 @@ async fn run_test_operation(resource: RcStr) -> Result<Vc<FileSystemPath>> {
let
mut
defines
=
compile_time_defines!
(
let
mut
defines
=
compile_time_defines!
(
process
.turbopack
=
true
,
process
.turbopack
=
true
,
process
.env.TURBOPACK
=
true
,
process
.env.TURBOPACK
=
"1"
,
process
.env.NODE_ENV
=
"development"
,
process
.env.NODE_ENV
=
"development"
,
DEFINED_VALUE
=
"value"
,
DEFINED_VALUE
=
"value"
,
DEFINED_TRUE
=
true
,
DEFINED_TRUE
=
true
,
...
...
turbopack/crates/turbopack/src/evaluate_context.rs
View file @
ba8a94d2
...
@@ -96,7 +96,7 @@ pub async fn node_evaluate_asset_context(
...
@@ -96,7 +96,7 @@ pub async fn node_evaluate_asset_context(
compile_time_defines!
(
compile_time_defines!
(
process
.turbopack
=
true
,
process
.turbopack
=
true
,
process
.env.NODE_ENV
=
node_env
.into_owned
(),
process
.env.NODE_ENV
=
node_env
.into_owned
(),
process
.env.TURBOPACK
=
true
process
.env.TURBOPACK
=
"1"
)
)
.resolved_cell
(),
.resolved_cell
(),
)
)
...
@@ -131,7 +131,7 @@ pub async fn config_tracing_module_context(
...
@@ -131,7 +131,7 @@ pub async fn config_tracing_module_context(
compile_time_defines!
(
compile_time_defines!
(
process
.turbopack
=
true
,
process
.turbopack
=
true
,
process
.env.NODE_ENV
=
node_env
.into_owned
(),
process
.env.NODE_ENV
=
node_env
.into_owned
(),
process
.env.TURBOPACK
=
true
process
.env.TURBOPACK
=
"1"
)
)
.resolved_cell
(),
.resolved_cell
(),
)
)
...
...
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