Cloudflare Pages-based website using the Next.JS framework and TailwindCSS for my personal website.
- Install Node.JS and NPM
- Ensure you have a Cloudflare account with a domain added
- Clone the project to your local machine
$ [email protected]:BehnH/portfolio.git
- Install the project dependencies
$ npm i
- Run the site in development mode (Fast-refresh mode)
$ npm run dev
Follow the guide in the Cloudflare Pages docs to deploy using a repository:
You will need to add 2 Environment Variables, otherwise some React dependencies will fail to build:
NODE_VERSION
- This should be set to the most recent Node.JS LTS versionNPM_VERSION
- This should be set to the most recent NPM stable NPM version