We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
output:standalone
1 parent 33aaa74 commit 64db131Copy full SHA for 64db131
crates/next-api/src/next_server_nft.rs
@@ -39,14 +39,16 @@ enum ServerNftType {
39
#[turbo_tasks::function]
40
pub async fn next_server_nft_assets(project: Vc<Project>) -> Result<Vc<OutputAssets>> {
41
let has_next_support = *project.ci_has_next_support().await?;
42
+ let is_standalone = *project.next_config().is_standalone().await?;
43
44
let minimal = ResolvedVc::upcast(
45
ServerNftJsonAsset::new(project, ServerNftType::Minimal)
46
.to_resolved()
47
.await?,
48
);
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
52
Ok(Vc::cell(vec![minimal]))
53
} else {
54
Ok(Vc::cell(vec![
0 commit comments