Skip to content

Commit ced8b2d

Browse files
author
Feroze Mohideen
authored
fix env (#4350)
1 parent 85ce545 commit ced8b2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/cmd/v2/apply.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ func Apply(ctx context.Context, inp ApplyInput) error {
191191
for _, v := range env {
192192
pair := strings.SplitN(v, "=", 2)
193193
if len(pair) == 2 {
194-
buildEnvVariables[pair[0]] = pair[1]
194+
if strings.HasPrefix(pair[0], "PORTER_") || strings.HasPrefix(pair[0], "NEXT_PUBLIC_") {
195+
buildEnvVariables[pair[0]] = pair[1]
196+
}
195197
}
196198
}
197199

0 commit comments

Comments
 (0)