Skip to content

A gallery of images using Cloudflare Images and Next.js React Server Components.

Notifications You must be signed in to change notification settings

camsqu/cloudflare-images-gallery

 
 

Repository files navigation

Cloudflare Images Gallery

This is a simple gallery of images using Cloudflare Images and Next.js React Server Components.

Features

  • 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.

How to use

  1. Fork this repository
  2. Go to Cloudflare Pages or Vercel and deploy the repository, use the Next.js Framework Preset
  3. Add the CF_API_TOKEN(from the "Read and Write Cloudflare Images and Stream" token template) and CF_ACCOUNT_ID (Found on this page) to your environment variables
  4. 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

Tech Stack

About

A gallery of images using Cloudflare Images and Next.js React Server Components.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.6%
  • CSS 7.6%
  • JavaScript 0.8%