From 6d7695e901dd549d9a759ba47b4cea59bb6326f4 Mon Sep 17 00:00:00 2001 From: mjrode Date: Sun, 31 Mar 2019 19:10:24 -0500 Subject: [PATCH] Typo --- client/src/setupProxy.js | 4 ++-- server/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/setupProxy.js b/client/src/setupProxy.js index 2f7cb60..a028c3b 100644 --- a/client/src/setupProxy.js +++ b/client/src/setupProxy.js @@ -1,7 +1,7 @@ const proxy = require('http-proxy-middleware'); -module.exports = function(app) { - app.use( +module.exports = function(server) { + server.use( proxy(['/plex/sections', '/auth/google'], { target: 'http://localhost:8080', }), diff --git a/server/index.js b/server/index.js index f2bfd62..7003184 100644 --- a/server/index.js +++ b/server/index.js @@ -45,7 +45,7 @@ export default () => { }); if (process.env.NODE_ENV === 'production') { - app.use(express.static('client/build')); + server.use(express.static('client/build')); const path = require('path'); app.get('*', (req, res) => { res.sendFile(path.resolve(__dirname, 'client', 'build', 'index.html'));