nextjs项目build后部署(不使用docker部署)
2025/6/25小于 1 分钟
nextjs项目build后,部署node服务
- 配置文件 output 只能为 standalone
const nextConfig: NextConfig = {
output: "standalone",
}- 打包后的静态文件更改位置
mv .next/static .next/standalone/.next- env.production
NODE_ENV=production bun run build