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 = {
images: {
loader: 'custom',
loaderFile: './lib/openinary-loader.ts',
remotePatterns: [
{
protocol: 'https',
@@ -18,6 +20,10 @@ const nextConfig: NextConfig = {
{
protocol: 'https',
hostname: 'res.cloudinary.com',
},
{
protocol: 'https',
hostname: 'media.ayris.tech',
}
],
},