Skip to content

Commit

Permalink
fix: respect Nuxt's devServer config when creating request for auth…
Browse files Browse the repository at this point in the history
… URL (#328)
  • Loading branch information
DamianGlowala committed Jul 17, 2023
1 parent 41752b2 commit 7d766ac
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(`http://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.port}${ROUTE_AUTH}?token=${token}`)),
'',
'Or manually copy and paste the following token:',
c.bold(c.cyan(token)),
Expand Down

0 comments on commit 7d766ac

Please sign in to comment.