芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/rentandbuyrealty.com/rentandbuyrealty.com/web/next.config.js
/* eslint-disable @typescript-eslint/no-var-requires */ const path = require('path') /** @type {import('next').NextConfig} */ const nextConfig = { images: { unoptimized: true, }, devIndicators: { buildActivity: false }, trailingSlash: true, reactStrictMode: false, webpack: (config, { isServer }) => { if (isServer) { require('./scripts/sitemap-generator') } config.resolve.alias = { ...config.resolve.alias, apexcharts: path.resolve(__dirname, './node_modules/apexcharts-clevision') } return config }, } // Conditionally set the output based on the environment if (process.env.NEXT_PUBLIC_SEO === "false") { nextConfig.output = 'export' nextConfig.images.unoptimized = true } module.exports = nextConfig