next.config.js 597 Bytes
/** @type {import('next').NextConfig} */
const nextConfig = {
  output: "standalone",
  images: { unoptimized: true },
  eslint: {
    // 忽略构建过程中的ESLint校验
    ignoreDuringBuilds: true,
  },
  typescript: {
    // !! WARN !!
    // Dangerously allow production builds to successfully complete even if
    // your project has type errors.
    // !! WARN !!
    ignoreBuildErrors: true,
  },
  async rewrites() {
    return [
      {
        source: '/shop/:path*',
        destination: 'http://39.108.227.113:8002/shop/:path*'
      }
    ]
  }
};

module.exports = nextConfig;