@@ -67,7 +67,7 @@ const checkForDeadLocalUrls = async () => {
67
67
// For ease of checking, replace the localhost domain with the live domain, add those to a new array.
68
68
let broke = [ ]
69
69
deadUrls . forEach ( url => {
70
- link = url . replace ( 'http://localhost:3000' , 'https://engage-ga-- segment-docs-private.netlify.app /docs' )
70
+ link = url . replace ( 'http://localhost:3000' , 'https://segment.com /docs' )
71
71
if ( ! link . endsWith ( '/' ) ) {
72
72
link = link + '/'
73
73
}
@@ -79,7 +79,7 @@ const checkForDeadLocalUrls = async () => {
79
79
// For those, we want to remove them from the list of dead links, because they aren't dead.
80
80
81
81
// app-nginx redirects
82
- const redirects = [ 'https://engage-ga-- segment-docs-private.netlify.app /docs/guides/usage-and-billing/' , 'https://engage-ga-- segment-docs-private.netlify.app /docs/connections/sources/catalog/libraries/website/plugins/' , 'https://engage-ga-- segment-docs-private.netlify.app /docs/assets/docs.bundle.js/' ]
82
+ const redirects = [ 'https://segment.com /docs/guides/usage-and-billing/' , 'https://segment.com /docs/connections/sources/catalog/libraries/website/plugins/' , 'https://segment.com /docs/assets/docs.bundle.js/' ]
83
83
84
84
// Redirects generated by Jekyll
85
85
// Pull the redirects json file
@@ -89,7 +89,7 @@ const checkForDeadLocalUrls = async () => {
89
89
if ( ! key . endsWith ( '/' ) ) {
90
90
key = key + '/'
91
91
}
92
- redirects . push ( 'https://engage-ga-- segment-docs-private.netlify.app /docs' + key . replace ( '/docs' , '' ) )
92
+ redirects . push ( 'https://segment.com /docs' + key . replace ( '/docs' , '' ) )
93
93
} )
94
94
// Remove the redirect urls from the list of broken URLs
95
95
broke = broke . filter ( val => ! redirects . includes ( val ) ) ;
0 commit comments