Skip to content

Commit

Permalink
refactor: use better option
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 13, 2023
1 parent 2e169e2 commit c361b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/presets/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ function generateBuildConfig(nitro: Nitro) {
],
});

// Early return without serverless functions if we are using a static preset
if (nitro.options.preset === "vercel-static") {
// Early return if we are not building a serverless function
if (!nitro.options.build) {
return config;
}

Expand Down

0 comments on commit c361b2b

Please sign in to comment.