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
This commit is contained in:
Scott Lamb 2021-03-04 13:06:46 -08:00
parent e7527af24c
commit fbaf7517aa

View File

@ -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,