Campground 생성 / 수정시에 이미지를 파일 형태로 업로드하고, 업로드 된 이미지는 Cloudinary 에 저장되도록 했다.

👇코드 보러가기

https://github.com/Sara-Jo/BeWild/tree/f2a0907da41e67632e1d9eb35447a52507ebb4ca

[app.js]

if (process.env.NODE_ENV !== "production") {
    require("dotenv").config();
}

[models/campground.js]