DEV Community

Henrique Holtz
Henrique Holtz

Posted on

1 1

How to publish a React app with surge.sh

We're need some tools installed:

  • NodeJs;
  • Surge CLI; (npm install --global surge)
  • Yarn; (optional)

Steps:

1. Build our React project

  • yarn build or npm build

2. Publish with surge.sh

  • surge (Will request your credentials)
  • {your_email}
  • {your_password}
  • {path of build result from your project}
  • {your_domain} (without HTTP/HTTPS, ex: myreactapp.surge.sh)

3. Wait to access your project with output link from previous step!

Thanks for reading!

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up