Skip to content

Commit

Permalink
fix env (#4350)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feroze Mohideen authored Feb 29, 2024
1 parent 85ce545 commit ced8b2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/cmd/v2/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@ func Apply(ctx context.Context, inp ApplyInput) error {
for _, v := range env {
pair := strings.SplitN(v, "=", 2)
if len(pair) == 2 {
buildEnvVariables[pair[0]] = pair[1]
if strings.HasPrefix(pair[0], "PORTER_") || strings.HasPrefix(pair[0], "NEXT_PUBLIC_") {
buildEnvVariables[pair[0]] = pair[1]
}
}
}

Expand Down

0 comments on commit ced8b2d

Please sign in to comment.