fix: get full customer

This commit is contained in:
John Yeo
2026-03-15 15:22:09 +00:00
parent a2686b3acd
commit 0f1611c2aa
13 changed files with 346 additions and 187 deletions

View 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");