How to deploy a next.js static app to Cloudflare pages

  1. Create a git repo using the standard next.js command or if you’d like you can clone this repo
npx create-next-app nextjs-cloudflare
setup in Cloudflare UI
comment out the issue causing next/image usage
deployed page

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store