Correct path to build/html to fix routing issue

This commit is contained in:
mjrode
2019-04-12 19:13:23 -05:00
parent 488a7025a9
commit 76ec598cd5
2 changed files with 2 additions and 2 deletions

View File

@@ -44,6 +44,7 @@ class MediaCard extends Component {
<i className="material-icons left">live_tv</i>Similar
Shows
</Link>
{show.views} Views
</div>
</div>
</div>

View File

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