Skip to content

Commit

Permalink
Add Cloudinary image loader
Browse files Browse the repository at this point in the history
  • Loading branch information
travismiller committed Feb 12, 2021
1 parent c874e25 commit f7810d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/'
},
})

0 comments on commit f7810d7

Please sign in to comment.