From 360f81200e5439a4d16bf67528b36c2dca813f82 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 8 Jan 2021 14:37:10 +0100 Subject: [PATCH] Set PUBLIC_URL env variable for production build #57 --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index fccb600..21da990 100644 --- a/package.json +++ b/package.json @@ -69,7 +69,8 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "PUBLIC_URL=https://villas.k8s.eonerc.rwth-aachen.de/ react-scripts build", + "build-localhost": "PUBLIC_URL=/ react-scripts build", "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject" },