Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
fix: import.meta.env.VITE_ENVIRONMENT
Richie McIlroy4f27a6b4aea5
diff --git a/packages/utils/src/constants/plans.ts b/packages/utils/src/constants/plans.tsindex 9f0a4eee1..625e056e1 100644--- a/packages/utils/src/constants/plans.ts+++ b/packages/utils/src/constants/plans.ts@@ -11,7 +11,9 @@ const planIds = {export const getProPlanId = (billingCycle: "yearly" | "monthly") => {const value =- import.meta.env.VITE_ENVIRONMENT ?? process.env.NEXT_PUBLIC_ENVIRONMENT;+ typeof import.meta !== 'undefined' && typeof import.meta.env !== 'undefined'+ ? import.meta.env.VITE_ENVIRONMENT+ : process.env.NEXT_PUBLIC_ENVIRONMENT;const environment = value === "development" ? "development" : "production";return planIds[environment]?.[billingCycle] || "";