Closed gadingnst closed 1 year ago
Hi, @gadingnst! Nice to see you experimenting. 👍
You need to proxy requests using a separate server. If you're using Next.js >= 12.3, you can use <Image />
and the config images.remotePatterns
like the following:
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
remotePatterns: [
{
protocol: 'https',
hostname: '**.cdninstagram.com',
},
{
protocol: 'https',
hostname: '**.fbcdn.net',
},
],
},
};
module.exports = nextConfig;
If not, you should use/implement something like Blazity/next-image-proxy.
solved. thanks, mate.
maybe it's not an issue. but currently, I can't load any image candidates url, do you have any suggestions to solve this?
BTW, thanks for the API! 🔥