fix(images): Clean up image paths, compress large images, and fix openinary URLs

This commit is contained in:
Mustafa Yildiz
2026-07-18 19:28:38 +03:00
parent be94aa5155
commit f4abe0bc5b
204 changed files with 474 additions and 169 deletions
+14
View File
@@ -3,6 +3,8 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: 'standalone',
images: {
loader: 'custom',
loaderFile: './lib/openinary-loader.ts',
remotePatterns: [
{
protocol: 'https',
@@ -16,8 +18,20 @@ const nextConfig: NextConfig = {
protocol: 'https',
hostname: 'res.cloudinary.com',
},
{
protocol: 'https',
hostname: 'media.ayris.tech',
},
],
},
async rewrites() {
return [
{
source: '/media-proxy/:path*',
destination: 'https://media.ayris.tech/:path*',
},
];
},
};
export default nextConfig;