Some checks failed
Deploy Frontend / deploy (push) Has been cancelled
- 在 next.config.mjs 中添加 output: 'export' 配置 - 设置 distDir: 'out' 指定输出目录 - 添加 trailingSlash: true 优化静态文件服务 - 现在构建会生成 frontend/out 目录供 CI/CD 部署使用 修复了 rsync 找不到 frontend/out 目录的问题
18 lines
289 B
JavaScript
18 lines
289 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
images: {
|
|
unoptimized: true,
|
|
},
|
|
output: 'export',
|
|
trailingSlash: true,
|
|
distDir: 'out',
|
|
}
|
|
|
|
export default nextConfig
|