From aa474d279b9ff907ba787a5eeb54bf3d33f6df94 Mon Sep 17 00:00:00 2001 From: sijinhui Date: Thu, 26 Sep 2024 10:44:11 +0800 Subject: [PATCH] enable pm2 start --- ecosystem.config.js | 4 +++- next.config.mjs | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index c5b7b6698..16dca32d5 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -5,6 +5,8 @@ module.exports = { args : "start", env : { PORT : 23000 - } + }, + autorestart: true, + interpreter: '/bin/bash', }] } diff --git a/next.config.mjs b/next.config.mjs index a976454c0..fe8cc0f2c 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -86,7 +86,11 @@ const nextConfig = { }, experimental: { forceSwcTransforms: true, - serverComponentsExternalPackages: ["tiktoken"] + serverComponentsExternalPackages: ["tiktoken"], + // 加速跟踪依赖项 + // turbotrace: { + // logDetail: true, + // }, }, // externals: { // 'sharp': 'commonjs sharp'