mirror of
https://github.com/formbricks/formbricks.git
synced 2026-01-16 11:29:57 -06:00
* Added Notification API * Added Email functionality to the weekly notification * Added no live survey email notification * Activating weeklySummary notification alertSwitch * Adding check to include only surveys which have weeklySummary enabled * Updated the condition for weekSummary notification check * update UI * Update to reduce number of database calls * Updated the email subject when no survey in weeklysummary * applied pnpm format * update notification settings with new types and fix functionality * loop through all products to send weekly summary email, colocate files * fix build errors * add more types * add vercel.json for cron configuration * remove console.logs, limit responses to 5 per survey * update email subject * improve how responses are displayed in summary email * update email layout * add cron to github action instead of vercel * add github action * add beta flag --------- Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
20 lines
859 B
TypeScript
20 lines
859 B
TypeScript
export const RESPONSES_LIMIT_FREE = 100;
|
|
export const IS_FORMBRICKS_CLOUD = process.env.NEXT_PUBLIC_IS_FORMBRICKS_CLOUD === "1";
|
|
|
|
// URLs
|
|
const VERCEL_URL = process.env.NEXT_PUBLIC_VERCEL_URL ? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}` : "";
|
|
const RAILWAY_STATIC_URL = process.env.RAILWAY_STATIC_URL ? `https://${process.env.RAILWAY_STATIC_URL}` : "";
|
|
const HEROKU_URL = process.env.HEROKU_APP_NAME ? `https://${process.env.HEROKU_APP_NAME}.herokuapp.com` : "";
|
|
const RENDER_URL = process.env.RENDER_EXTERNAL_URL ? `https://${process.env.RENDER_EXTERNAL_URL}` : "";
|
|
export const WEBAPP_URL =
|
|
process.env.NEXT_PUBLIC_WEBAPP_URL ||
|
|
VERCEL_URL ||
|
|
RAILWAY_STATIC_URL ||
|
|
HEROKU_URL ||
|
|
RENDER_URL ||
|
|
"http://localhost:3000";
|
|
|
|
// Other
|
|
export const INTERNAL_SECRET = process.env.INTERNAL_SECRET;
|
|
export const CRON_SECRET = process.env.CRON_SECRET;
|