Created
February 11, 2019 18:01
-
-
Save amosuro/63b4f095624d1b563aac6580ab2681c7 to your computer and use it in GitHub Desktop.
temp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.use(express.static(path.join(__dirname, 'client', 'build'))); | |
app.get('*', (req, res) => { | |
res.sendFile(path.join(__dirname, 'client', 'build', 'index.html')); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment