DEV Community

Cover image for Continuous deployment for front-end projects with surge.sh
Paul C. Ishaili
Paul C. Ishaili

Posted on

4

Continuous deployment for front-end projects with surge.sh

Surge.sh has indeed boosted my efficiency for deploying front-end projects.

How to get started

  1. Globally install surge.sh

    npm install -g surge
    
  2. Run the surge command

    surge
    
  3. Setup an email and password

  4. Assign a domain for your project

    Surge.sh description

  5. Add this command to your package.json scripts

    ...
    "deploy": "surge --domain your-assigned-domain.surge.sh"
    
  6. Run the command when next your build is ready.

Voila 🚀!


Was this helpful? Let me know in the comment section, especially compared to deploying on other platforms.


I am Paul Ishaili C., a software engineer and tech writer. I share interesting thoughts and processes on solving problems and truly understanding programming.

Follow me on Twitter and LinkedIn


Credits

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

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

Okay