Before deploying to Vercel, you need three tools:
Git is the tool used to upload your project to GitHub, so Vercel can deploy it.
π https://git-scm.com/downloads
Choose your operating system and install.
During installation:
Open Terminal (Mac) or Command Prompt (Windows):
git --version
If you see a version number β Git is installed.
Go to: π https://github.com/new
flexiblogCopy the repo URL and run:
git initgit remote add origin https://github.com/YOUR_USERNAME/YOUR_REPO.gitgit commit -m "Initial FlexiBlog setup"git add .git push -u origin master
Your FlexiBlog theme is now on GitHub.
π https://vercel.com
Log in with GitHub.
Vercel will automatically show all your GitHub repositories.
Vercel imports the repo.
You MUST update these settings because FlexiBlog is inside a /site folder.
/
cd site && npm run build
site/public
Go to:
Vercel β Project β Settings β Environment Variables
Copy everything from:
site/.env
Also add this required variable:
GATSBY_CPU_COUNT=2
Click Save.
Then:
π Click Deploy or Redeploy.
Any time you update your site:
git add .git commit -m "Update homepage"git push
Vercel will rebuild and publish.