We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe9839 commit fd779eeCopy full SHA for fd779ee
src/runtime/env.ts
@@ -4,6 +4,9 @@ import { eventHandler } from 'h3'
4
export default eventHandler((event) => {
5
const env = event.context.cloudflare?.env || {}
6
for (const key in env) {
7
- process.env[key] = process.env[key] || env[key]
+ // Only set env if process.env[key] is undefined and env[key] is not a binding
8
+ if (typeof process.env[key] === 'undefined' && typeof env[key] === 'string') {
9
+ process.env[key] = env[key]
10
+ }
11
}
12
})
0 commit comments