Skip to content

Commit ea2e0a7

Browse files
authored
fix(Preview): EnvId in preview url (teambit#7136)
1 parent 3a2e174 commit ea2e0a7

File tree

1 file changed

+1
-1
lines changed
  • scopes/preview/ui/component-preview

1 file changed

+1
-1
lines changed

scopes/preview/ui/component-preview/urls.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function toPreviewUrl(
1111
includeEnvId = true
1212
) {
1313
const serverPath = toPreviewServer(component, previewName);
14-
const envId = includeEnvId ? component.environment?.id : undefined;
14+
const envId = includeEnvId && component.server?.url ? component.environment?.id : undefined;
1515
const hash = toPreviewHash(component, previewName, envId, additionalParams);
1616

1717
return `${serverPath}#${hash}`;

0 commit comments

Comments
 (0)