From 6ac60cfa6503a2416cdc2ab66cb009398706819a Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Mon, 25 Jan 2021 11:15:58 +0100 Subject: [PATCH] fix under which domain the serve:build script runs the frontend this makes the iframe work in this mode Signed-off-by: Philip Molares --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 67c866ceb..745bcafe7 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,7 @@ "start": "cross-env PORT=3001 craco start", "start:test": "cross-env PORT=3001 REACT_APP_TEST_MODE=true craco start", "start:for-real-backend": "cross-env REACT_APP_BACKEND=http://localhost:3000 yarn start", - "serve:build": "http-server build/ -s -p 3001 -P \"http://127.0.0.1:3001?\"", + "serve:build": "http-server build/ -s -p 3001 -P \"http://localhost:3001?\"", "build:test": "cross-env REACT_APP_TEST_MODE=true craco build", "build:production": "craco build", "analyze": "cross-env ANALYZE=true craco build",