Fetch plex server url and token to use on all requests

This commit is contained in:
mjrode
2019-04-12 19:20:15 -05:00
parent 76ec598cd5
commit ee0aa332d5

View File

@@ -45,8 +45,11 @@ export default () => {
if (process.env.NODE_ENV === 'production') {
server.use(express.static('client/build'));
const path = require('path');
server.get('*', (req, res) => {
res.sendFile('../client/build/index.html');
res.sendFile(
path.resolve(__dirname, '..', 'client', 'build', 'index.html'),
);
});
}