Skip to content

Commit

Permalink
fix: next config dev env
Browse files Browse the repository at this point in the history
  • Loading branch information
bamdadfr committed Oct 9, 2024
1 parent 556696e commit 7f2b608
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ const configuration = {
},
images: {
remotePatterns: [
!isEnvProduction && {
protocol: 'http',
hostname: 'localhost',
port: '8000',
pathname: '/**',
},
{
protocol: 'https',
hostname: 'api.screwmycode.in',
Expand All @@ -41,5 +35,14 @@ const configuration = {
},
};

if (!isEnvProduction) {
configuration.images.remotePatterns.push({
protocol: 'http',
hostname: 'localhost',
port: '8000',
pathname: '/**',
});
}

const SentryWebpackPluginOptions = {};
export default withSentryConfig(configuration, SentryWebpackPluginOptions);

0 comments on commit 7f2b608

Please sign in to comment.