From e0ace13fd97c3233b3a94d7b35e962fed962b792 Mon Sep 17 00:00:00 2001 From: sabertazimi Date: Sat, 25 Feb 2023 15:19:15 +0800 Subject: [PATCH] ci(scripts): change localhost ip issue bahmutov/start-server-and-test#348 --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index af8aac8eb..c6898dfda 100644 --- a/package.json +++ b/package.json @@ -24,9 +24,9 @@ "build": "next build && next-sitemap --config sitemap.config.js", "clone": "git clone https://$VERCEL_GIT_PROVIDER.com/$VERCEL_GIT_REPO_OWNER/$VERCEL_GIT_REPO_SLUG && rm -fr .git && cp -fr $VERCEL_GIT_REPO_SLUG/.git . && rm -fr $VERCEL_GIT_REPO_SLUG", "dev": "next", - "e2e:chrome": "start-server-and-test e2e:prepare http://localhost:3000 cypress:chrome", - "e2e:firefox": "start-server-and-test e2e:prepare http://localhost:3000 cypress:firefox", - "e2e:ui": "start-server-and-test e2e:prepare http://localhost:3000 cypress:open", + "e2e:chrome": "start-server-and-test e2e:prepare http://127.0.0.1:3000 cypress:chrome", + "e2e:firefox": "start-server-and-test e2e:prepare http://127.0.0.1:3000 cypress:firefox", + "e2e:ui": "start-server-and-test e2e:prepare http://127.0.0.1:3000 cypress:open", "e2e:prepare": "yarn build && yarn serve", "cypress:chrome": "cypress run --browser chrome", "cypress:chromium": "cypress run --browser chromium", @@ -44,7 +44,7 @@ "changeset": "standard-version --dry-run -s", "release": "standard-version -s", "serve": "next start", - "start": "start-server-and-test dev http://localhost:3000 cypress:open", + "start": "start-server-and-test dev http://127.0.0.1:3000 cypress:open", "test": "jest -o", "test:all": "jest", "test:watch": "jest --watch"