This commit updates the next.config.js file to allow the usage of remote SVG images. It adds a new configuration for the `images` property, specifically allowing SVG images from the `img.shields.io` domain over HTTPS.
19 lines
409 B
JavaScript
19 lines
409 B
JavaScript
const { i18n } = require('./next-i18next.config')
|
|
|
|
module.exports = {
|
|
i18n,
|
|
reactStrictMode: true,
|
|
// Required by Next i18n with API routes, otherwise API routes 404 when fetching without trailing slash
|
|
trailingSlash: true,
|
|
images: {
|
|
dangerouslyAllowSVG: true,
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'img.shields.io',
|
|
port: '',
|
|
},
|
|
],
|
|
},
|
|
}
|