Files
cfw-autumn/server/experiments/experimentEnv.ts
2026-03-15 15:22:09 +00:00

22 lines
491 B
TypeScript

import "dotenv/config";
import { loadLocalEnv } from "../src/utils/envUtils";
loadLocalEnv();
const requireEnv = ({ key }: { key: string }) => {
const value = process.env[key];
if (!value) {
throw new Error(`${key} env var is required`);
}
return value;
};
export const prodTestOrgId = requireEnv({ key: "PROD_TEST_ORG_ID" });
export const prodTestCustomerId = requireEnv({
key: "PROD_TEST_CUSTOMER_ID",
});
export const { initDrizzle } = await import("../src/db/initDrizzle");