Skip to content

Commit

Permalink
fix: add rewrites for images in next config
Browse files Browse the repository at this point in the history
asbhogal committed Dec 1, 2024

Verified

This commit was signed with the committer’s verified signature.
asbhogal Aman Singh Bhogal
1 parent 2cd388b commit d9a7ad8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
@@ -4,6 +4,14 @@ const nextConfig: NextConfig = {
images: {
unoptimized: true,
},
async rewrites() {
return [
{
destination: 'https://www.amansinghbhogal.com/api/media/file/:path*',
source: '/api/media/file/:path*',
},
];
},
};

export default nextConfig;

0 comments on commit d9a7ad8

Please sign in to comment.