Files
ok_r/next.config.js
karlcarlo 804b4b3b07 chore: 将部署基础路径从 /ok-r 更改为 /ok_r
更新 Next.js 配置中的 basePath 设置,以使用下划线替代连字符,确保与部署环境的路由规则保持一致。
2026-01-28 16:41:02 +08:00

17 lines
340 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
basePath: '/ok_r', // 部署到子路径时需要设置
eslint: {
ignoreDuringBuilds: true,
},
images: { unoptimized: true },
webpack: (config, { dev }) => {
if (dev) {
config.cache = false;
}
return config;
},
};
module.exports = nextConfig;