Skip to content

Commit

Permalink
feat(planner/dart): Add "serverless" field to static artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
pan93412 committed Oct 18, 2024
1 parent 0b0ae28 commit 7bf1948
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/dart/identify.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package dart

import (
"strconv"
"strings"

"github.com/moznion/go-optional"
Expand Down Expand Up @@ -111,6 +112,9 @@ func (i *identify) PlanMeta(options plan.NewPlannerOptions) types.PlanMeta {
}

if od := determineOutputDir(ctx); od != "" {
meta["serverless"] = strconv.FormatBool(
utils.GetExplicitServerlessConfig(ctx.Config).TakeOr(false),
)
meta["outputDir"] = od
}

Expand Down

0 comments on commit 7bf1948

Please sign in to comment.