Skip to content

Commit 91800d2

Browse files
authored
Merge pull request #616 from segmentio/repo-sync
repo sync
2 parents a86476a + 9d338e0 commit 91800d2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/checklinks-internal.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const checkForDeadLocalUrls = async () => {
6767
// For ease of checking, replace the localhost domain with the live domain, add those to a new array.
6868
let broke = []
6969
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')
7171
if (!link.endsWith('/')){
7272
link = link+'/'
7373
}
@@ -79,7 +79,7 @@ const checkForDeadLocalUrls = async () => {
7979
// For those, we want to remove them from the list of dead links, because they aren't dead.
8080

8181
// 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/']
8383

8484
// Redirects generated by Jekyll
8585
// Pull the redirects json file
@@ -89,7 +89,7 @@ const checkForDeadLocalUrls = async () => {
8989
if (!key.endsWith('/')){
9090
key = key+'/'
9191
}
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',''))
9393
})
9494
// Remove the redirect urls from the list of broken URLs
9595
broke = broke.filter(val => !redirects.includes(val));

0 commit comments

Comments
 (0)