Skip to content

Commit

Permalink
fix: respect server.port when setting custom host (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbmarshall authored Sep 10, 2023
1 parent c676a0d commit 50ae7a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Overlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const importMetaUrl = isClient ? new URL(import.meta.url) : {}
const protocol = inspectorOptions.serverOptions?.https ? 'https:' : importMetaUrl?.protocol
const hostOpts = inspectorOptions.serverOptions?.host
const host = hostOpts && hostOpts !== true ? hostOpts : importMetaUrl?.hostname
const port = inspectorOptions.serverOptions?.port ?? importMetaUrl?.port
const port = hostOpts && hostOpts !== true ? inspectorOptions.serverOptions?.port : importMetaUrl?.port
const baseUrl = isClient ? inspectorOptions.openInEditorHost || `${protocol}//${host}:${port}` : ''
const KEY_DATA = 'data-v-inspector'
Expand Down

0 comments on commit 50ae7a1

Please sign in to comment.