Skip to content

Commit 45efd99

Browse files
committed
fix: allow bundler to skip deploying functions
1 parent 007404c commit 45efd99

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/function/batch.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@ OUTER:
6161
}
6262
var body bytes.Buffer
6363
meta, err := s.eszip.Bundle(ctx, slug, function.Entrypoint, function.ImportMap, function.StaticFiles, &body)
64-
if err != nil {
64+
if errors.Is(err, ErrNoDeploy) {
65+
fmt.Fprintln(os.Stderr, "Skipping undeployable Function:", slug)
66+
continue
67+
} else if err != nil {
6568
return err
6669
}
6770
meta.VerifyJwt = &function.VerifyJWT

0 commit comments

Comments
 (0)