fix: resolve CORS issue for mask images by proxying through Next.js rewrites
This commit is contained in:
@@ -28,6 +28,14 @@ const nextConfig: NextConfig = {
|
||||
],
|
||||
},
|
||||
output: 'standalone',
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/media-proxy/:path*',
|
||||
destination: 'https://media.ayris.tech/:path*',
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user