1 | import { Cloudinary } from 'cloudinary-core'
|
2 | const { REACT_APP_CLOUDINARY_DISTRIBUTION } = process.env
|
3 |
|
4 | const configureCloudinary = () => {
|
5 | const cl = new Cloudinary({
|
6 | cloud_name: 'roa-canon',
|
7 | secure_distribution: REACT_APP_CLOUDINARY_DISTRIBUTION,
|
8 | secure: true
|
9 | })
|
10 | return cl
|
11 | }
|
12 |
|
13 | const instance = configureCloudinary()
|
14 |
|
15 | export default instance
|