feat: Add option to customize link survey url using NEXT_PUBLIC_SURVEY_BASE_URL (#787)

This commit is contained in:
Matti Nannt
2023-09-08 14:01:56 +09:00
committed by GitHub
parent 38092f8a7c
commit bf6ed3576c
8 changed files with 48 additions and 15 deletions
+4
View File
@@ -16,6 +16,10 @@ export const WEBAPP_URL =
RENDER_URL ||
"http://localhost:3000";
export const SURVEY_BASE_URL = process.env.NEXT_PUBLIC_SURVEY_BASE_URL
? process.env.NEXT_PUBLIC_SURVEY_BASE_URL + "/"
: `${WEBAPP_URL}/s/`;
// Other
export const INTERNAL_SECRET = process.env.INTERNAL_SECRET || "";
export const CRON_SECRET = process.env.CRON_SECRET;