alinea
Version:
Headless git-based CMS
21 lines (19 loc) • 506 B
JavaScript
import "../../chunks/chunk-NZLE2WMY.js";
// src/cli/util/WarnPublicEnv.ts
var ignore = /* @__PURE__ */ new Set(["FORCE_COLOR", "NODE_ENV"]);
var mockProcess = {
env: new Proxy(
{},
{
get(target, key) {
if (ignore.has(key)) return;
console.warn(
`process.env.${key} is not defined on the client. If this variable is required in the browser, prefix the variable with PUBLIC_ and restart Alinea.`
);
}
}
)
};
export {
mockProcess as process
};