diff --git a/apps/BUILD.bazel b/apps/BUILD.bazel index b6a77bcd9..67980b550 100644 --- a/apps/BUILD.bazel +++ b/apps/BUILD.bazel @@ -30,8 +30,7 @@ nodejs_binary( "--project", "internal-200822", "--config", - # TODO: Find a way to do this without relying on the copy_to_bin that works cross platform. - "$$(rlocation dev-infra/apps/firebase.json)", + "firebase.json", "emulators:start", ], ) @@ -55,8 +54,7 @@ nodejs_binary( "--project", "internal-200822", "--config", - # TODO: Find a way to do this without relying on the copy_to_bin that works cross platform. - "$$(rlocation dev-infra/apps/firebase.json)", + "firebase.json", "deploy", ], ) diff --git a/apps/functions/dns-redirecting/index.ts b/apps/functions/dns-redirecting/index.ts index a65ce1aa9..3b674c004 100644 --- a/apps/functions/dns-redirecting/index.ts +++ b/apps/functions/dns-redirecting/index.ts @@ -46,6 +46,15 @@ export const dnsRedirecting = functions.https.onRequest( if (hostname === 'blog.angular.io') { response.redirect(redirectType, `https://blog.angular.dev${request.originalUrl}`); } + if (hostname === 'material.angular.io') { + response.redirect(redirectType, `https://material.angular.dev${request.originalUrl}`); + } + if (hostname.endsWith('.material.angular.io')) { + response.redirect( + redirectType, + `https://${request.subdomains[0]}.material.angular.dev${request.originalUrl}`, + ); + } // If no redirect is matched, we return a failure message response.status(404);