Skip to content

Instantly share code, notes, and snippets.

@hemel-cse
Created October 15, 2018 00:21
Show Gist options
  • Save hemel-cse/0e7276b1acf7c86013aa28a97c08a0c8 to your computer and use it in GitHub Desktop.
Save hemel-cse/0e7276b1acf7c86013aa28a97c08a0c8 to your computer and use it in GitHub Desktop.
Custom 404 error not found page for PM2 with react SPA serving with nginx
As per code: https://github.com/Unitech/pm2/blob/master/lib/API/Serve.js#L225
Just need an additional page name 404.html in the build folder.
As create a 404.html page and design it and the pm2 will serve it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment