fix: get full customer
This commit is contained in:
21
server/experiments/experimentEnv.ts
Normal file
21
server/experiments/experimentEnv.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user