chore: setup openinary custom loader in next config
This commit is contained in:
@@ -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',
|
||||
}
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user