MIT License
This repository contains examples of how to upload images to Cloudinary in a Next.js application. The examples are based on the Cloudinary documentation and the Next.js documentation. The examples are written in TypeScript and it shows how you can upload images to Cloudinary using API Route
handlers.
API Route
git clone https://github.com/Eprince-hub/cloudinary-image-upload-example.git
cd cloudinary-image-upload-example
pnpm install
.env
file in the root directorytouch .env
.env
file: reference the .env.example
filePGHOST=localhost
PGDATABASE=your_database_name
PGUSERNAME=your_database_username
PGPASSWORD=your_database_password
CLOUDINARY_CLOUD_NAME=your_cloudinary_cloud_name
CLOUDINARY_API_KEY=your_cloudinary_api_key
CLOUDINARY_API_SECRET=your_cloudinary_api_secret
pnpm migrate up
pnpm dev
http://localhost:3000
This project is open source and available under the MIT License.