16 lines
392 B
JavaScript
16 lines
392 B
JavaScript
import path from 'path';
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// output: 'export', // 移除静态导出以兼容 Vercel
|
|
trailingSlash: true,
|
|
distDir: 'build',
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
// Generate sitemap during build
|
|
generateBuildId: async () => {
|
|
return 'build-' + Date.now();
|
|
},
|
|
};
|
|
export default nextConfig;
|