Skip to content

Commit

Permalink
configure: remove with antd less option in next config
Browse files Browse the repository at this point in the history
  • Loading branch information
moolmin committed Sep 23, 2024
1 parent 23fde46 commit 940836c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import withAntdLess from 'next-plugin-antd-less';
// import withAntdLess from 'next-plugin-antd-less';
import { withSentryConfig } from '@sentry/nextjs';

/** @type {import('next').NextConfig} */
const nextConfig = withAntdLess({
const nextConfig = ({
reactStrictMode: true,
swcMinify: false,
swcMinify: true,
assetPrefix: '',
experimental: { esmExternals: true },
images: {
domains: ['api.qqqq.world'],
},
env: {
env: {
NEXT_PUBLIC_GA_ID: process.env.NEXT_PUBLIC_GA_ID,
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL,
},
transpilePackages: ['antd', '@ant-design', 'rc-util', 'rc-pagination', 'rc-picker', 'rc-notification', 'rc-tooltip'],
webpack: (config) => {
webpack: (config, { dev, isServer }) => {
config.infrastructureLogging = { debug: /PackFileCache/ };
config.resolve.alias.canvas = false;
config.cache = false;
Expand Down

0 comments on commit 940836c

Please sign in to comment.