Skip to content

Commit

Permalink
fix: don't show warning when there are no ef
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed Nov 27, 2023
1 parent acc9498 commit dbd6066
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/edge-functions/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ export class EdgeFunctionsRegistry {
throw new Error('Build error')
}

if (this.functions.length === 0) {
return { warnings }
}

this.buildError = null

// We use one index to loop over both internal and user function, because we know that this.#functions has internalFunctions first.
Expand Down

0 comments on commit dbd6066

Please sign in to comment.