Surge #12145
slorber
started this conversation in
Deployment Platforms
Surge
#12145
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Note: I didn't write this platform guide. It was initially contributed to our website, and I extracted it here as part of our Deployment docs cleanup (#12139)
Deploying to Surge
Surge is a static web hosting platform that you can use to deploy your Docusaurus project from the command line in seconds. Deploying your project to Surge is easy and free (including custom domains and SSL certs).
Deploy your app in a matter of seconds using Surge with the following steps:
First-time users of Surge would be prompted to create an account from the command line (which happens only once).
Confirm that the site you want to publish is in the
builddirectory. A randomly generated subdomain*.surge.sh subdomainis always given (which can be edited).Using your domain {/* #using-your-domain */}
If you have a domain name you can deploy your site using the command:
Your site is now deployed for free at
subdomain.surge.shoryour-domain.comdepending on the method you chose.Setting up CNAME file {/* #setting-up-cname-file */}
Store your domain in a CNAME file for future deployments with the following command:
You can deploy any other changes in the future with the command
surge.Beta Was this translation helpful? Give feedback.
All reactions