From f7810d76c2ea2199664da889a6810bf8db11e37e Mon Sep 17 00:00:00 2001 From: Travis Miller Date: Fri, 12 Feb 2021 13:56:00 -0600 Subject: [PATCH] Add Cloudinary image loader --- next.config.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/next.config.js b/next.config.js index d2e99f7..5bb7e1d 100644 --- a/next.config.js +++ b/next.config.js @@ -5,4 +5,10 @@ const withImages = require('next-images') module.exports = withImages({ // https://nextjs.org/docs/api-reference/next.config.js/basepath basePath: process.env.BASE_PATH || '', + + // https://nextjs.org/docs/basic-features/image-optimization + images: { + loader: 'cloudinary', + path: 'https://res.cloudinary.com/rnatulsa/image/upload/' + }, })