Compare commits

...

2 Commits

Author SHA1 Message Date
review-agent-prime[bot]
0880fe5b8d Edit packages/lib/constants.ts 2024-03-19 19:19:00 +00:00
Matthias Nannt
7601e377b4 chore: change caching revalidation interval to 30minutes 2024-03-19 20:17:44 +01:00

View File

@@ -4,9 +4,9 @@ import { env } from "./env";
export const IS_FORMBRICKS_CLOUD = env.IS_FORMBRICKS_CLOUD === "1";
export const REVALIDATION_INTERVAL = 0; //TODO: find a good way to cache and revalidate data when it changes
export const SERVICES_REVALIDATION_INTERVAL = 60 * 60 * 3; // 3 hours
export const MAU_LIMIT = IS_FORMBRICKS_CLOUD ? 9000 : 1000000;
const MINUTE = 60;
const HOUR = MINUTE * 60;
export const SERVICES_REVALIDATION_INTERVAL = MINUTE * 30; // 30 minutes
// URLs
export const WEBAPP_URL =
env.WEBAPP_URL || (env.VERCEL_URL ? `https://${env.VERCEL_URL}` : false) || "http://localhost:3000";