astro
Version:
Astro is a modern site builder with web best practices, performance, and DX front-of-mind.
13 lines (12 loc) • 334 B
JavaScript
import { productionEnvironment } from "./production.js";
const environments = /* @__PURE__ */ new WeakMap();
function setEnvironment(manifest, env) {
environments.set(manifest, env);
}
function getEnvironment(manifest) {
return environments.get(manifest) ?? productionEnvironment;
}
export {
getEnvironment,
setEnvironment
};