Skip to content

Commit

Permalink
refactor(next-config): 👷 use image patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
krsiakdaniel committed Dec 25, 2024
1 parent 5c2a0ef commit 80aecc6
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
images: {
domains: ['app.codacy.com', 'github.com', 'img.shields.io', 'api.netlify.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'app.codacy.com',
port: '',
pathname: '/**',
search: '',
},
{
protocol: 'https',
hostname: 'github.com',
port: '',
pathname: '/**',
search: '',
},
{
protocol: 'https',
hostname: 'img.shields.io',
port: '',
pathname: '/**',
search: '',
},
{
protocol: 'https',
hostname: 'api.netlify.com',
port: '',
pathname: '/**',
search: '',
},
],
dangerouslyAllowSVG: true,
unoptimized: false,
},
Expand Down

0 comments on commit 80aecc6

Please sign in to comment.