mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2025-12-30 18:19:46 -06:00
Fetch plex server url and token to use on all requests
This commit is contained in:
@@ -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'),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user