Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

How to add Sanity CDN to next.config.js in Next.js

5 replies
Last updated: May 20, 2024
How would I add Sanity cdn to next.config.js?
May 20, 2024, 6:24 PM
/** @type {import('next').NextConfig} */
const config = {
  images: {
    remotePatterns: [{ hostname: "<http://cdn.sanity.io|cdn.sanity.io>" }],
  },
};
May 20, 2024, 6:28 PM
Thank you.
May 20, 2024, 6:37 PM
Per the channel description, use a single thread for your question. Posting it multiple times per day is also not allowed and will result in threads being deleted.
May 20, 2024, 7:00 PM
Sorry. I just didn't realise it notified anybody if I posted back in my own thread.
May 20, 2024, 7:08 PM
Thanks for understanding.
May 20, 2024, 8:05 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?