/** @type {import('next').NextConfig} */

// 如需部署到子路径（如 GitHub Pages），设置 basePath
// 例如：const basePath = "/your-repo-name";
const basePath = "";

const nextConfig = {
  // output: "export",  // 静态导出模式，部署时取消注释
  basePath,
  assetPrefix: basePath,
  images: {
    unoptimized: true,
  },
  trailingSlash: true,
  env: {
    NEXT_PUBLIC_BASE_PATH: basePath,
  },
};

export default nextConfig;
