vidcraft / next.config.js
tsi-org's picture
Upload 89 files
19e25f3
raw
history blame contribute delete
609 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
dirs: ['src'],
},
reactStrictMode: true,
swcMinify: true,
// Uncoment to add domain whitelist
// images: {
// domains: [
// 'res.cloudinary.com',
// ],
// },
// SVGR
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: [
{
loader: '@svgr/webpack',
options: {
typescript: true,
icon: true,
},
},
],
});
return config;
},
};
module.exports = nextConfig;