fb
This commit is contained in:
11
lib/cloudinary.ts
Normal file
11
lib/cloudinary.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { v2 as cloudinary } from 'cloudinary';
|
||||
|
||||
// Configure Cloudinary with environment variables
|
||||
cloudinary.config({
|
||||
cloud_name: process.env.NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME,
|
||||
api_key: process.env.NEXT_PUBLIC_CLOUDINARY_API_KEY,
|
||||
api_secret: process.env.NEXT_PUBLIC_CLOUDINARY_API_SECRET,
|
||||
secure: true,
|
||||
});
|
||||
|
||||
export default cloudinary;
|
||||
Reference in New Issue
Block a user