97 lines
2.5 KiB
JavaScript
97 lines
2.5 KiB
JavaScript
/** @type {import('next').NextConfig} */
|
|
// require('dotenv').config();
|
|
// const webpack = require('webpack');
|
|
|
|
const nextConfig = {
|
|
// webpack: (config) => {
|
|
// config.plugins.push(
|
|
// new webpack.EnvironmentPlugin(process.env)
|
|
// )
|
|
// return config
|
|
// },
|
|
reactStrictMode: true,
|
|
basePath: '',
|
|
// basePath: '/dev2/convexsol',
|
|
// assetPrefix: '/dev2/convexsol/',
|
|
|
|
// staticPageGenerationTimeout: 300000,
|
|
images: {
|
|
domains: [
|
|
'localhost',
|
|
'convexsol.sentientgeeks.us',
|
|
'convexsol-admin.convexsol.co',
|
|
'convexsol.com',
|
|
'admin.convexsol.com',
|
|
'convexsol.s3.ap-south-1.amazonaws.com',
|
|
"127.0.0.1",
|
|
],
|
|
remotePatterns: [
|
|
{
|
|
protocol: 'http',
|
|
hostname: 'localhost',
|
|
port: '1338',
|
|
search: '',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'convexsol-admin.convexsol.co',
|
|
port: '',
|
|
search: '',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'convexsoladmin.sentientgeeks.us',
|
|
port: '',
|
|
search: '',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'convexsol.com',
|
|
port: '',
|
|
search: '',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'admin.convexsol.com',
|
|
port: '',
|
|
search: '',
|
|
},
|
|
{
|
|
protocol: 'https',
|
|
hostname: 'convexsol.s3.ap-south-1.amazonaws.com',
|
|
port: '',
|
|
search: '',
|
|
},
|
|
],
|
|
},
|
|
experimental: {
|
|
optimizePackageImports: [
|
|
'@mui/icons-material',
|
|
'@mui/material',
|
|
'swiper',
|
|
'react-icons',
|
|
'react-phone-input-2',
|
|
'react-markdown',
|
|
'zod',
|
|
'react-hook-form',
|
|
'react-google-recaptcha',
|
|
'@gsap/react',
|
|
'@lottiefiles/react-lottie-player',
|
|
],
|
|
webpackBuildWorker: true,
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
compiler: {
|
|
styledComponents: true,
|
|
},
|
|
sassOptions: { silenceDeprecations: ['legacy-js-api'] },
|
|
};
|
|
|
|
const withBundleAnalyzer = require('@next/bundle-analyzer')({
|
|
enabled: true,
|
|
});
|
|
|
|
module.exports = nextConfig;
|