ai_gallery/next.config.js
2024-11-01 08:18:31 +08:00

23 lines
487 B
JavaScript

const path = require('path');
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: ['lodash'],
webpack: (config) => {
config.resolve.alias['@'] = path.resolve(__dirname, 'src');
return config;
},
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'slefboot-1251736664.file.myqcloud.com',
port: '',
pathname: '/**',
},
]
},
};
module.exports = nextConfig;