onedrive-index/next.config.js
Alex b57016af60
chore: Update next.config.js to allow remote SVG images
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.
2024-09-12 00:26:45 -06:00

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: '',
},
],
},
}