mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			366 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/** @type {import('next').NextConfig} */
 | 
						|
 | 
						|
const nextConfig = {
 | 
						|
  experimental: {
 | 
						|
    appDir: true,
 | 
						|
  },
 | 
						|
  webpack(config) {
 | 
						|
    config.module.rules.push({
 | 
						|
      test: /\.svg$/,
 | 
						|
      use: ["@svgr/webpack"],
 | 
						|
    }); // 针对 SVG 的处理规则
 | 
						|
 | 
						|
    return config;
 | 
						|
  }
 | 
						|
};
 | 
						|
 | 
						|
if (process.env.DOCKER) {
 | 
						|
  nextConfig.output = 'standalone'
 | 
						|
}
 | 
						|
 | 
						|
module.exports = nextConfig;
 |