Static web hosting GitHub Pages, Netlify, and Vercel
Static web hosting is a great way to deploy and share your websites. Here’s a brief overview of how to use GitHub Pages, Netlify, and Vercel for static web hosting, along with their validity periods.
GitHub Pages
Setup:
- Create a Repository: Start by creating a new repository on GitHub. Ensure it’s public if you want it to be freely accessible.
- Add Your Files: Upload your website files (HTML, CSS, JavaScript, etc.) to the repository.
- Enable GitHub Pages:
- Go to the repository’s settings.
- Scroll down to the “Pages” section.
- Under “Source,” select the branch you want to serve from (usually
main or master), and the folder (usually /root or /docs).
- Save the settings.
Validity Period:
GitHub Pages hosting is free and does not have an expiration period as long as the repository remains active and complies with GitHub’s Terms of Service.
Netlify
Setup:
- Sign Up/Login: Create an account or log in to Netlify.
- New Site: Click on “New site from Git” on your Netlify dashboard.
- Connect to GitHub: Connect your GitHub account and select the repository you want to deploy.
- Deploy Settings: Configure your deploy settings and build commands (if necessary).
- Deploy: Click on “Deploy site.”
Validity Period:
Netlify offers a free tier that provides continuous hosting without a specific expiration date. However, higher traffic sites or advanced features may require a paid plan.
Vercel
Setup:
- Sign Up/Login: Create an account or log in to Vercel.
- New Project: Click on “New Project” and import your repository from GitHub, GitLab, or Bitbucket.
- Configure Project: Configure the project settings and build settings (if necessary).
- Deploy: Click “Deploy” to publish your site.
Validity Period:
Vercel also offers a free tier with continuous hosting, but similar to Netlify, high traffic or advanced features might require a paid plan.
Summary
- GitHub Pages: Free, indefinite hosting as long as the repository remains active.
- Netlify: Free tier available with no specific expiration; paid plans for advanced features or higher traffic.
- Vercel: Free tier available with no specific expiration; paid plans for advanced features or higher traffic.
All these services offer robust and scalable solutions for hosting static websites, each with their own set of features and limitations based on the chosen plan.