mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(test-utils): hardcode ipv4 ip for localhost (#4998)
This commit is contained in:
parent
bd80d27a49
commit
cd37a21c2e
@ -12,7 +12,7 @@ export async function startServer () {
|
|||||||
const ctx = useTestContext()
|
const ctx = useTestContext()
|
||||||
await stopServer()
|
await stopServer()
|
||||||
const port = await getRandomPort()
|
const port = await getRandomPort()
|
||||||
ctx.url = 'http://localhost:' + port
|
ctx.url = 'http://127.0.0.1:' + port
|
||||||
if (ctx.options.dev) {
|
if (ctx.options.dev) {
|
||||||
const nuxiCLI = await kit.resolvePath('nuxi/cli')
|
const nuxiCLI = await kit.resolvePath('nuxi/cli')
|
||||||
ctx.serverProcess = execa(nuxiCLI, ['dev'], {
|
ctx.serverProcess = execa(nuxiCLI, ['dev'], {
|
||||||
|
Loading…
Reference in New Issue
Block a user