Skip to content

Instantly share code, notes, and snippets.

@brunopgalvao
Last active November 15, 2019 20:26
Show Gist options
  • Save brunopgalvao/0d8fcaabe8f1a6d862397160d933e3f6 to your computer and use it in GitHub Desktop.
Save brunopgalvao/0d8fcaabe8f1a6d862397160d933e3f6 to your computer and use it in GitHub Desktop.
This is how you deploy a create-react-app to surge.sh

cd into your react app and do the following:

npm run build
cd build/
mv index.html 200.html
npx surge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment