diff --git a/src/registry/routes/helpers/get-component.ts b/src/registry/routes/helpers/get-component.ts index cd7afe81..9fbe1505 100644 --- a/src/registry/routes/helpers/get-component.ts +++ b/src/registry/routes/helpers/get-component.ts @@ -688,7 +688,14 @@ export default function getComponent(conf: Config, repository: Repository) { URL: globalThis?.URL, URLSearchParams: globalThis?.URLSearchParams, crypto: globalThis?.crypto, - fetch: globalThis?.fetch + fetch: globalThis?.fetch, + process: { + env: { + NODE_ENV: conf.local ? 'development' : 'production', + ...conf.env, + ...env + } + } }; const handleError = (err: {