feat(deployment): 优化宝塔 PM2 standalone 部署流程并添加一键部署脚本
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
Some checks failed
lotteryadmin CI / build (push) Has been cancelled
This commit is contained in:
@@ -5,9 +5,12 @@ import { parseAllowedDevOrigins } from "./src/lib/next-dev-origins";
|
||||
const allowedDevOrigins = parseAllowedDevOrigins(process.env.ALLOWED_DEV_ORIGINS);
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
output: "standalone",
|
||||
...(allowedDevOrigins.length > 0 ? { allowedDevOrigins } : {}),
|
||||
reactCompiler: true,
|
||||
images: {
|
||||
unoptimized: true,
|
||||
},
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user