Skip to content

Commit 5b6da7a

Browse files
committed
Fix output:standalone
1 parent c35ef22 commit 5b6da7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/next-api/src/next_server_nft.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ enum ServerNftType {
3939
#[turbo_tasks::function]
4040
pub async fn next_server_nft_assets(project: Vc<Project>) -> Result<Vc<OutputAssets>> {
4141
let has_next_support = *project.ci_has_next_support().await?;
42+
let is_standalone = *project.next_config().is_standalone().await?;
4243

4344
let minimal = ResolvedVc::upcast(
4445
ServerNftJsonAsset::new(project, ServerNftType::Minimal)
4546
.to_resolved()
4647
.await?,
4748
);
4849

49-
if has_next_support {
50+
if has_next_support && !is_standalone {
5051
Ok(Vc::cell(vec![minimal]))
5152
} else {
5253
Ok(Vc::cell(vec![

0 commit comments

Comments
 (0)