| 
									
										
										
										
											2024-08-14 12:57:22 +08:00
										 |  |  | const WebpackObfuscator = require("webpack-obfuscator"); | 
					
						
							| 
									
										
										
										
											2023-12-25 17:21:39 +08:00
										 |  |  | /** @type {import('next').NextConfig} */ | 
					
						
							|  |  |  | const nextConfig = { | 
					
						
							|  |  |  |   pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"], | 
					
						
							|  |  |  |   images: { | 
					
						
							|  |  |  |     remotePatterns: [ | 
					
						
							|  |  |  |       { protocol: "https", hostname: "raw.githubusercontent.com" }, | 
					
						
							|  |  |  |       { protocol: "https", hostname: "github.com" }, | 
					
						
							|  |  |  |     ], | 
					
						
							|  |  |  |   }, | 
					
						
							|  |  |  |   // webpack: (config, { dev }) => {
 | 
					
						
							|  |  |  |   //   if (!dev) {
 | 
					
						
							|  |  |  |   //     config.plugins.push(new WebpackObfuscator({ rotateStringArray: true }));
 | 
					
						
							|  |  |  |   //   }
 | 
					
						
							|  |  |  |   //   return config;
 | 
					
						
							|  |  |  |   // },
 | 
					
						
							|  |  |  |   // experimental: {
 | 
					
						
							|  |  |  |   //   webpackBuildWorker: true,
 | 
					
						
							|  |  |  |   // },
 | 
					
						
							|  |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | module.exports = nextConfig; |