Skip to content

Instantly share code, notes, and snippets.

@amosuro
Created February 11, 2019 18:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amosuro/63b4f095624d1b563aac6580ab2681c7 to your computer and use it in GitHub Desktop.
Save amosuro/63b4f095624d1b563aac6580ab2681c7 to your computer and use it in GitHub Desktop.
temp
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