Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: dns migration #2250

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ const config: Config<ConfigSchema> = 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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const reminderEmailBodyGenerator = (
For more info on how to renew your API key, please refer to our <a href="https://guide.postman.gov.sg/api-guide/api-key-management/rotate-your-api-key">documentation</a>.
<br><br>
Thank you,<br>
<a href="https://postman.gov.sg">Postman.gov.sg</a> &bull; Open Government Products &bull; <a href="https://open.gov.sg">open.gov.sg</a>`
<a href="https://legacy.postman.gov.sg">Postman.gov.sg</a> &bull; Open Government Products &bull; <a href="https://open.gov.sg">open.gov.sg</a>`
default: {
const exhaustiveCheck: never = whenExpire
throw new Error(`Unhandled status: ${exhaustiveCheck}`)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -137,13 +137,13 @@ export const createEmailBody = (
</p>

<p>
Please log in to <a href="https://postman.gov.sg">postman.gov.sg</a> and navigate to your campaign
Please log in to <a href="https://legacy.postman.gov.sg">postman.gov.sg</a> and navigate to your campaign
landing page to download your report if you wish to keep it for audit purpose.
</p>

<p>
Thank you,<br>
<a href="https://postman.gov.sg">Postman.gov.sg</a> &bull; Open Government Products &bull; <a href="https://open.gov.sg">open.gov.sg</a>
<a href="https://legacy.postman.gov.sg">Postman.gov.sg</a> &bull; Open Government Products &bull; <a href="https://open.gov.sg">open.gov.sg</a>
</p>
`

Expand Down
2 changes: 1 addition & 1 deletion worker/src/core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ const config: Config<ConfigSchema> = 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: {
Expand Down
Loading