chore: setup openinary custom loader in next config

This commit is contained in:
Mustafa Yildiz
2026-07-18 14:44:36 +03:00
parent 3a17b6f7c1
commit ab184529eb
+6
View File
@@ -2,6 +2,8 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
images: { images: {
loader: 'custom',
loaderFile: './lib/openinary-loader.ts',
remotePatterns: [ remotePatterns: [
{ {
protocol: 'https', protocol: 'https',
@@ -18,6 +20,10 @@ const nextConfig: NextConfig = {
{ {
protocol: 'https', protocol: 'https',
hostname: 'res.cloudinary.com', hostname: 'res.cloudinary.com',
},
{
protocol: 'https',
hostname: 'media.ayris.tech',
} }
], ],
}, },