Skip to content

Commit

Permalink
fix: requestForAuth devServer host (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
arashsheyda committed Aug 3, 2023
1 parent 313fa1b commit 5e89ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/devtools/src/server-rpc/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function setupGeneralRPC({ nuxt, options, refresh, openInEditorHooks }: N
c.bold(info),
'',
'Please open the following URL in the browser:',
c.bold(c.green(`${nuxt.options.devServer.https ? 'https' : 'http'}://${nuxt.options.devServer.host || 'localhost'}:${nuxt.options.devServer.port}${ROUTE_AUTH}?token=${token}`)),
c.bold(c.green(`${nuxt.options.devServer.https ? 'https' : 'http'}://${nuxt.options.devServer.host === '::' ? 'localhost' : (nuxt.options.devServer.host || 'localhost')}:${nuxt.options.devServer.port}${ROUTE_AUTH}?token=${token}`)),
'',
'Or manually copy and paste the following token:',
c.bold(c.cyan(token)),
Expand Down

0 comments on commit 5e89ce8

Please sign in to comment.