Skip to content

Commit 914b2a5

Browse files
committed
[codecane] copy over NEXT_PUBLIC_* envs
1 parent bf08f6c commit 914b2a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/scripts/build-binary.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ async function main() {
156156
`--outfile=${outputFile}`,
157157
'--sourcemap=none',
158158
...defineFlags.flatMap(([key, value]) => ['--define', `${key}=${value}`]),
159+
'--env "NEXT_PUBLIC_*"', // Copies all current env vars in process.env to the compiled binary that match the pattern.
159160
]
160161

161162
log(

0 commit comments

Comments
 (0)