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
1e0b74f6
Commit
1e0b74f6
authored
Nov 04, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some lint issues
parent
717175bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
16 deletions
+10
-16
pages.rs
crates/next-api/src/pages.rs
+0
-6
project.rs
crates/next-api/src/project.rs
+10
-10
No files found.
crates/next-api/src/pages.rs
View file @
1e0b74f6
...
@@ -502,9 +502,6 @@ impl PagesProject {
...
@@ -502,9 +502,6 @@ impl PagesProject {
async
fn
ssr_resolve_options_context
(
self
:
Vc
<
Self
>
)
->
Result
<
Vc
<
ResolveOptionsContext
>>
{
async
fn
ssr_resolve_options_context
(
self
:
Vc
<
Self
>
)
->
Result
<
Vc
<
ResolveOptionsContext
>>
{
Ok
(
get_server_resolve_options_context
(
Ok
(
get_server_resolve_options_context
(
self
.project
()
.project_path
()
.owned
()
.await
?
,
self
.project
()
.project_path
()
.owned
()
.await
?
,
// NOTE(alexkirsz) This could be `PagesData` for the data endpoint, but it doesn't
// matter (for now at least) because `get_server_resolve_options_context` doesn't
// differentiate between the two.
ServerContextType
::
Pages
{
ServerContextType
::
Pages
{
pages_dir
:
self
.pages_dir
()
.owned
()
.await
?
,
pages_dir
:
self
.pages_dir
()
.owned
()
.await
?
,
},
},
...
@@ -519,9 +516,6 @@ impl PagesProject {
...
@@ -519,9 +516,6 @@ impl PagesProject {
async
fn
edge_ssr_resolve_options_context
(
self
:
Vc
<
Self
>
)
->
Result
<
Vc
<
ResolveOptionsContext
>>
{
async
fn
edge_ssr_resolve_options_context
(
self
:
Vc
<
Self
>
)
->
Result
<
Vc
<
ResolveOptionsContext
>>
{
Ok
(
get_edge_resolve_options_context
(
Ok
(
get_edge_resolve_options_context
(
self
.project
()
.project_path
()
.owned
()
.await
?
,
self
.project
()
.project_path
()
.owned
()
.await
?
,
// NOTE(alexkirsz) This could be `PagesData` for the data endpoint, but it doesn't
// matter (for now at least) because `get_server_resolve_options_context` doesn't
// differentiate between the two.
ServerContextType
::
Pages
{
ServerContextType
::
Pages
{
pages_dir
:
self
.pages_dir
()
.owned
()
.await
?
,
pages_dir
:
self
.pages_dir
()
.owned
()
.await
?
,
},
},
...
...
crates/next-api/src/project.rs
View file @
1e0b74f6
...
@@ -61,7 +61,8 @@ use turbopack_core::{
...
@@ -61,7 +61,8 @@ use turbopack_core::{
file_source
::
FileSource
,
file_source
::
FileSource
,
ident
::
Layer
,
ident
::
Layer
,
issue
::{
issue
::{
CollectibleIssuesExt
,
Issue
,
IssueExt
,
IssueFilter
,
IssueSeverity
,
IssueStage
,
StyledString
,
CollectibleIssuesExt
,
Issue
,
IssueExt
,
IssueFilter
,
IssueSeverity
,
IssueStage
,
OptionStyledString
,
StyledString
,
},
},
module
::
Module
,
module
::
Module
,
module_graph
::{
module_graph
::{
...
@@ -1530,15 +1531,14 @@ impl Project {
...
@@ -1530,15 +1531,14 @@ impl Project {
// In development watch mode, keep issues so individual routes can report them.
// In development watch mode, keep issues so individual routes can report them.
// In non-watch dev mode (e.g. next build --debug-prerender) or production, drop issues
// In non-watch dev mode (e.g. next build --debug-prerender) or production, drop issues
// so every route doesn't redundantly re-report all shared graph issues.
// so every route doesn't redundantly re-report all shared graph issues.
let
module_graphs_vc
=
if
!
self
.next_mode
()
.await
?
.is_production
()
let
module_graphs_vc
=
&&
*
self
.is_watch_enabled
()
.await
?
if
!
self
.next_mode
()
.await
?
.is_production
()
&&
*
self
.is_watch_enabled
()
.await
?
{
{
module_graphs_op
.connect
()
module_graphs_op
.connect
()
}
else
{
}
else
{
let
vc
=
module_graphs_op
.resolve
()
.strongly_consistent
()
.await
?
;
let
vc
=
module_graphs_op
.resolve
()
.strongly_consistent
()
.await
?
;
module_graphs_op
.drop_issues
();
module_graphs_op
.drop_issues
();
*
vc
*
vc
};
};
scale_down_node_pool
(
self
)
.await
?
;
scale_down_node_pool
(
self
)
.await
?
;
Ok
(
module_graphs_vc
)
Ok
(
module_graphs_vc
)
}
}
...
...
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