This is a simple gallery of images using Cloudflare Images and Next.js React Server Components.
- Copy
imagedelivery
URL to clipboard - Variant Support
- Mobile Responsive
Important
You need to have a Cloudflare account with a paid Images subscription to use this project.
- Fork this repository
- Go to Cloudflare Pages or Vercel and deploy the repository, use the Next.js Framework Preset
- Add the
CF_API_TOKEN
(from the "Read and Write Cloudflare Images and Stream" token template) andCF_ACCOUNT_ID
(Found on this page) to your environment variables - Deploy!
Tip
If you are getting a compatibility error on Cloudflare Pages, go into the project settings tab -> Functions -> Configure Production Compatibility flags and add nodejs_compat
, then redeploy