When comparing GitLab Pages vs Surge, the Slant community recommends GitLab Pages for most people. In the question“What are the best website hosting providers?” GitLab Pages is ranked 1st while Surge is ranked 15th. The most important reason people chose GitLab Pages is:
Gitlab pages are quick and simple to setup, with [documentation](http://doc.gitlab.com/ee/pages/) that's short and fast to read through.
Ranked in these QuestionsQuestion Ranking
Pro Easy to setup
Gitlab pages are quick and simple to setup, with documentation that's short and fast to read through.
Pro Regular updates
GitLab is being constantly worked on and has a new release every month.
Pro Free private repositories
On gitlab.com you can have free private repositories.
Pro Open Source
Unlike BitBucket or GitHub, GitLab itself is Open Source. Even EE (which is needed for pages, but is free on Gitlab.com) is "source available".
Pro Free Tier
Unlimited projects, deployments, and collaborators in free tier which also includes basic SSL. Pro options for those who need it cost $13/month (or all you can eat top tier at $30/mo) which gives you auto-provisioning SSL certificates on custom domains.
Pro Automatic Clean URLS
/page resolves /page.html
Pro Custom 404.html files
Catch-all 200.html files.
Pro Six Keystrokes to publish site
Type surge and hit enter in your project directory to deploy.
Pro pushState support for single page apps
Great for front ends like React and Vue.
Pro Automatic Gziping
Auto gzips and sends gziped files.
Pro Supports Jekyll and Grunt and other CIs
Pro Far-future expire headers
Pro Support on Slack
Live Chat Support.
Pro ent (intelligently) about trailing slashes (“/”)
Pro Fully featured CLI tool
Provides a CLI tool to easily deploy using terminal with
Pro Atomic Deploys
Deployments are fast, instant, and atomic - with zero chance of collisions.
Con Does not support .pdf by default
Does not support .pdf. To get PDF support you have to add a credit card by running
surge card (though no charges apply).