From 14a2e60990d15a92062ccefd9fe2589a4e563a41 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 11 Sep 2024 10:59:49 -0600 Subject: [PATCH] feat(apps): handle redirect for code-of-conduct.angular.io redirect code-of-conduct.angular.io to code-of-conduct.angular.dev --- apps/functions/dns-redirecting/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/functions/dns-redirecting/index.ts b/apps/functions/dns-redirecting/index.ts index 5057f1cd5..fc143db04 100644 --- a/apps/functions/dns-redirecting/index.ts +++ b/apps/functions/dns-redirecting/index.ts @@ -28,6 +28,9 @@ export const dnsRedirecting = functions } } + if (hostname === 'code-of-conduct.angular.io') { + response.redirect(redirectType, 'https://code-of-conduct.angular.dev'); + } if (hostname === 'update.angular.dev') { response.redirect(redirectType, 'https://angular.dev/update-guide'); }