Introducing Surge

The CDN for Front-End Developers

Brock Whitten
Mar 3, 2015 · 3 min read

Have you ever wondered how to deploy a web project and get things like clean urls, graceful trailing slash handling, fallback 404 pages, or serve a catch-all file for apps using PushState?

Surge does all that while handling details such as setting long–live cache headers and setting proper HTTP status codes across a content delivery network.

Installation of surge is easy using node & npm

npm install -g surge

We’ve come a long way

Surge is designed to stay out of your way and plays nice with all your favourite tools.

Existing Solutions


Enter Surge

  • Custom 404.html files.
  • Catch-all 200.html files (for PushState apps).
  • SSL.
  • Indifferent (intelligently) about trailing slashes (“/”).
  • Clean URLs (indifferent about trailing .html).
  • Far-future expire headers.
  • Easy collaboration built right in.

Ship something now!

To get started with surge is easy. Just install using npm and then run surge within any directory you wish to publish onto the web.

  1. install the latest version of NodeJS
  2. install using npm by running npm install -g surge
  3. run surge from within any directory to publish that directory onto the web.

That’s it! Account creation will happen on first run and you may deploy as frequently as you like.

Try surge now!

npm install --global surge

How much does it cost? The plan is that everything that surge does today will remain to be free. Mainly, that is unlimited applications with custom domains. Oh, and you will always own your content (I hate that I need to say that).

@sintaxi

Have feedback? Let us know on twitter: @sintaxi, @rob_ellis, @kennethormandy.

Get started at surge.sh

npm install --global surge

surge sh

Shipping web projects should be fast, easy, and low risk.

Thanks to Kenneth Ormandy, David Ascher, and xnoɹǝʃ uɐıɹq

Brock Whitten

Written by

Co-creator of Surge, Harp, and Cordova/PhoneGap. Mozilla-WebFWD Alumni and advocate of a free and open web. A friend of the community.

surge sh

surge sh

Shipping web projects should be fast, easy, and low risk. Surge helps deliver.

Brock Whitten

Written by

Co-creator of Surge, Harp, and Cordova/PhoneGap. Mozilla-WebFWD Alumni and advocate of a free and open web. A friend of the community.

surge sh

surge sh

Shipping web projects should be fast, easy, and low risk. Surge helps deliver.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store