File tree 2 files changed +11
-4
lines changed
functions/dns-redirecting
2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,7 @@ nodejs_binary(
30
30
"--project" ,
31
31
"internal-200822" ,
32
32
"--config" ,
33
- # TODO: Find a way to do this without relying on the copy_to_bin that works cross platform.
34
- "$$(rlocation dev-infra/apps/firebase.json)" ,
33
+ "firebase.json" ,
35
34
"emulators:start" ,
36
35
],
37
36
)
@@ -55,8 +54,7 @@ nodejs_binary(
55
54
"--project" ,
56
55
"internal-200822" ,
57
56
"--config" ,
58
- # TODO: Find a way to do this without relying on the copy_to_bin that works cross platform.
59
- "$$(rlocation dev-infra/apps/firebase.json)" ,
57
+ "firebase.json" ,
60
58
"deploy" ,
61
59
],
62
60
)
Original file line number Diff line number Diff line change @@ -46,6 +46,15 @@ export const dnsRedirecting = functions.https.onRequest(
46
46
if ( hostname === 'blog.angular.io' ) {
47
47
response . redirect ( redirectType , `https://blog.angular.dev${ request . originalUrl } ` ) ;
48
48
}
49
+ if ( hostname === 'material.angular.io' ) {
50
+ response . redirect ( redirectType , `https://material.angular.dev${ request . originalUrl } ` ) ;
51
+ }
52
+ if ( hostname . endsWith ( '.material.angular.io' ) ) {
53
+ response . redirect (
54
+ redirectType ,
55
+ `https://${ request . subdomains [ 0 ] } .material.angular.dev${ request . originalUrl } ` ,
56
+ ) ;
57
+ }
49
58
50
59
// If no redirect is matched, we return a failure message
51
60
response . status ( 404 ) ;
You can’t perform that action at this time.
0 commit comments