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)

nextjs tutorial video

📺 Youtube Tutorial Series

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay