Skip to content

Commit

Permalink
modified next.config file to fix image loading issue from public dire…
Browse files Browse the repository at this point in the history
…ctory
  • Loading branch information
AmirKakavand committed Aug 9, 2024
1 parent ede178c commit 8f6a582
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ const nextConfig = {
{ loader: '@next/font/google', options: { subsets: ['latin'] } },
],
},
assetPrefix: process.env.NODE_ENV === 'production' ? '/Rick-and-Morty-Wiki/' : '',
assetPrefix: '/Rick-and-Morty-Wiki/',
basePath: '/Rick-and-Morty-Wiki/',
};

// https://rickandmortyapi.com/api/character/avatar/1.jpeg
Expand Down

0 comments on commit 8f6a582

Please sign in to comment.