diff --git a/server/server.js b/server/server.js index 6b81972..41c3dea 100644 --- a/server/server.js +++ b/server/server.js @@ -19,7 +19,7 @@ const apiRouter = require('./routes/api'); const app = express(); -const allowedOrigin = process.env.NODE_ENV === 'production' ? env.REACT_ADDRESS : '*'; +const allowedOrigin = process.env.NODE_ENV === 'production' ? process.env.REACT_ADDRESS : '*'; const corsOptions = { origin: allowedOrigin }