From aa193a9c1185d426a1c11186e3613b75d69cb481 Mon Sep 17 00:00:00 2001
From: KishenKumarrrrr
Date: Mon, 25 Mar 2024 11:01:32 +0800
Subject: [PATCH] chore: dns migration
---
backend/src/core/config.ts | 4 ++--
.../functions/src/cron-jobs/api-key-expiry/helper.ts | 2 +-
.../functions/src/cron-jobs/redaction-digest/helper.ts | 8 ++++----
worker/src/core/config.ts | 2 +-
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/backend/src/core/config.ts b/backend/src/core/config.ts
index 8343529bb..69c009210 100644
--- a/backend/src/core/config.ts
+++ b/backend/src/core/config.ts
@@ -323,12 +323,12 @@ const config: Config = convict({
},
protectedUrl: {
doc: 'Url domain and path for password-protected messages',
- default: 'https://postman.gov.sg/p', // prod only
+ default: 'https://legacy.postman.gov.sg/p', // prod only
env: 'PROTECTED_URL',
},
unsubscribeUrl: {
doc: 'Url domain and path for unsubscribe page',
- default: 'https://postman.gov.sg/unsubscribe', // prod only
+ default: 'https://legacy.postman.gov.sg/unsubscribe', // prod only
env: 'UNSUBSCRIBE_URL',
},
session: {
diff --git a/sst/packages/functions/src/cron-jobs/api-key-expiry/helper.ts b/sst/packages/functions/src/cron-jobs/api-key-expiry/helper.ts
index 3dce032fc..0dc7b2627 100644
--- a/sst/packages/functions/src/cron-jobs/api-key-expiry/helper.ts
+++ b/sst/packages/functions/src/cron-jobs/api-key-expiry/helper.ts
@@ -32,7 +32,7 @@ const reminderEmailBodyGenerator = (
For more info on how to renew your API key, please refer to our documentation.
Thank you,
- Postman.gov.sg • Open Government Products • open.gov.sg`
+ Postman.gov.sg • Open Government Products • open.gov.sg`
default: {
const exhaustiveCheck: never = whenExpire
throw new Error(`Unhandled status: ${exhaustiveCheck}`)
diff --git a/sst/packages/functions/src/cron-jobs/redaction-digest/helper.ts b/sst/packages/functions/src/cron-jobs/redaction-digest/helper.ts
index 3716e49a9..00d8934a3 100644
--- a/sst/packages/functions/src/cron-jobs/redaction-digest/helper.ts
+++ b/sst/packages/functions/src/cron-jobs/redaction-digest/helper.ts
@@ -17,8 +17,8 @@ export const RETENTION_PERIOD = 30
export const NOTICE_PERIOD = 7
// TODO switch based on stage
const FRONTEND_URL =
- 'https://postman.gov.sg' ||
- 'https://staging.postman.gov.sg' ||
+ 'https://legacy.postman.gov.sg' ||
+ 'https://legacy-staging.postman.gov.sg' ||
'http://localhost:3000'
export const getUserRedactedCampaigns = async (
@@ -137,13 +137,13 @@ export const createEmailBody = (
- Please log in to postman.gov.sg and navigate to your campaign
+ Please log in to postman.gov.sg and navigate to your campaign
landing page to download your report if you wish to keep it for audit purpose.
Thank you,
- Postman.gov.sg • Open Government Products • open.gov.sg
+ Postman.gov.sg • Open Government Products • open.gov.sg
`
diff --git a/worker/src/core/config.ts b/worker/src/core/config.ts
index 8c582f8af..104e0b35a 100644
--- a/worker/src/core/config.ts
+++ b/worker/src/core/config.ts
@@ -300,7 +300,7 @@ const config: Config = convict({
},
unsubscribeUrl: {
doc: 'Used to generate unsubscribe url',
- default: 'https://postman.gov.sg', // prod only
+ default: 'https://legacy.postman.gov.sg', // prod only
env: 'UNSUBSCRIBE_URL',
},
smsFallback: {