From ab184529eb6b19fdc1aec24b52fe53f24aeee09c Mon Sep 17 00:00:00 2001 From: Mustafa Yildiz Date: Sat, 18 Jul 2026 14:44:36 +0300 Subject: [PATCH] chore: setup openinary custom loader in next config --- next.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/next.config.ts b/next.config.ts index 60efd05..f4e410b 100644 --- a/next.config.ts +++ b/next.config.ts @@ -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', } ], },