41 lines
1.0 KiB
TypeScript
41 lines
1.0 KiB
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
images: {
|
|
loader: 'custom',
|
|
loaderFile: './lib/openinary-loader.ts',
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'images.unsplash.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'lh3.googleusercontent.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'llnpipqrizjlvufxhfwf.supabase.co',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'res.cloudinary.com',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'media.ayris.tech',
|
|
}
|
|
],
|
|
},
|
|
output: 'standalone',
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/media-proxy/:path*',
|
|
destination: 'https://media.ayris.tech/:path*',
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |