From fbaf7517aad830b9a35895c2d294789237b086e5 Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Thu, 4 Mar 2021 13:06:46 -0800 Subject: [PATCH] avoid ?? in setupProxy.js It worked fine on my laptop with node.js v14.15.4, but not on my new workstation with node.js v12.18.2 (as comes with Ubuntu 20.10). It would print "Unexpected token '?'" without any clue what file the error is in. I'm trying to fix that here: https://github.com/facebook/create-react-app/pull/10652 --- ui/src/setupProxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/setupProxy.js b/ui/src/setupProxy.js index 79284fe..1d92d16 100644 --- a/ui/src/setupProxy.js +++ b/ui/src/setupProxy.js @@ -10,7 +10,7 @@ module.exports = (app) => { app.use( "/api", createProxyMiddleware({ - target: process.env.PROXY_TARGET ?? "http://localhost:8080/", + target: process.env.PROXY_TARGET || "http://localhost:8080/", ws: true, changeOrigin: true,