Skip to content

Commit 9e00d19

Browse files
committed
fix: dashboard domain cli output
1 parent 0f3b686 commit 9e00d19

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"engines": {
77
"node": ">=10.0.0"
88
},
9-
"version": "0.7.0",
9+
"version": "0.7.2",
1010
"license": "MIT",
1111
"homepage": "https://github.com/blinkkcode/fileset/",
1212
"repository": {

src/manifest.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@ export class Manifest {
186186
this.site === 'default'
187187
? `https://${branchToken}${hostnameSuffix}`
188188
: `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}`;
190197
return {
191198
stagingLink: stagingLink,
192199
buildLink: buildLink,

0 commit comments

Comments
 (0)