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)

AWS Q Developer image

Your AI Code Assistant

Q Developer CLI agent provides a lightning-fast coding experience that can read and write files locally, call AWS APIs, run bash commands, or create code—all while adapting to your feedback in real-time.

Start coding for free