General
Deployment means to host our site online so that anyone on the internet can access the website
- Using GitHub to store code. GitHub is a platform to store git repositories
- Using Netlify or Cloudflare Pages for Deployment
- Cloudflare provides us unlimited bandwidth whereas Netlify gives us more tools built-in like Netlify Forms so choose accordingly
Steps
Forms
- Form is a dynamic functionality that allows our site to have submissions
- For this we either need to setup a backend ourselves or use an external service such as FormSpree
- Netlify supports forms built-in, so we don’t need to add any third-party service
Steps
- Enable form detection
- Add the
netlifyandnameattribute in our startingformtag. All the input tags also need to have thenameattribute
- It will now show us all the form submissions inside our Netlify Dashboard
Domain Setup
- Domain is the name of our website like
website.comwe need to purchase this from a Registrar like GoDaddy or Namecheap
- Now after purchasing the domain we need to change the Domain Name Servers (DNS) that points our domain to our hosting provider (this is provided by our hosting provider like Netlify or Cloudflare)
- Netlify Nameservers
- Changing DNS records in Namecheap
- Voilla! This connects our site with the domain and now our site will be accessible via our domain directly 🐵
does pages.dev still takes time? 🥲