Skip to content

Commit 64db131

Browse files
committed
Fix output:standalone
1 parent 33aaa74 commit 64db131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/next-api/src/next_server_nft.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ 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 {
51+
// When deploying to Vercel, we only need next-minimal-server.js.nft.json
5052
Ok(Vc::cell(vec![minimal]))
5153
} else {
5254
Ok(Vc::cell(vec![

0 commit comments

Comments
 (0)