File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -177,16 +177,23 @@ export class Manifest {
177
177
) {
178
178
hostnameSuffix = `.${ hostnameSuffix } ` ;
179
179
}
180
- const buildLink =
181
- this . site === 'default'
182
- ? `https://${ this . shortSha } ${ hostnameSuffix } `
183
- : `https://${ this . site } -${ this . shortSha } ${ hostnameSuffix } ` ;
180
+ const buildLink = s ;
181
+ this . site === 'default'
182
+ ? `https://${ this . shortSha } ${ hostnameSuffix } `
183
+ : `https://${ this . site } -${ this . shortSha } ${ hostnameSuffix } ` ;
184
184
const branchToken = branchToHostnameToken ( this . branch ) ;
185
185
const stagingLink =
186
186
this . site === 'default'
187
187
? `https://${ branchToken } ${ hostnameSuffix } `
188
188
: `https://${ this . site } -${ branchToken } ${ hostnameSuffix } ` ;
189
- const dashboardLink = `https://${ hostnameSuffix } /fileset/sites/${ this . site } /${ this . shortSha } ` ;
189
+ let dashboardDomain = hostnameSuffix ;
190
+ dashboardDomain = dashboardDomain . startsWith ( '-dot-' )
191
+ ? dashboardDomain . slice ( 5 )
192
+ : dashboardDomain ;
193
+ dashboardDomain = dashboardDomain . startsWith ( '.' )
194
+ ? dashboardDomain . slice ( 1 )
195
+ : dashboardDomain ;
196
+ const dashboardLink = `https://${ dashboardDomain } /fileset/sites/${ this . site } /${ this . shortSha } ` ;
190
197
return {
191
198
stagingLink : stagingLink ,
192
199
buildLink : buildLink ,
You can’t perform that action at this time.
0 commit comments