Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
6 changes: 2 additions & 4 deletions apps/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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",
],
)
Expand All @@ -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",
],
)
9 changes: 9 additions & 0 deletions apps/functions/dns-redirecting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down