17 lines
340 B
JavaScript
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;
|