diff --git a/.gitignore b/.gitignore index fd688dd4c..bcf6dab44 100644 --- a/.gitignore +++ b/.gitignore @@ -5,9 +5,6 @@ # dependencies node_modules/ .idea/ -# build -.next/ -dist/ # build .next @@ -22,6 +19,9 @@ apps/fo/.next/**/* #.env* .qodo +# next-agents-md +.next-docs/ + pnpm-lock.yaml settings.json .npmrc @@ -29,6 +29,4 @@ settings.json .agent apps/**/tsconfig.tsbuildinfo - -# next-agents-md -.next-docs/ +logs/ \ No newline at end of file diff --git a/apps/common/features/next.config.ts b/apps/common/features/next.config.ts index 34965cf32..8a50ea611 100644 --- a/apps/common/features/next.config.ts +++ b/apps/common/features/next.config.ts @@ -1,6 +1,21 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + output: "standalone", + experimental: { + proxyTimeout: 600000, + }, + eslint: { + ignoreDuringBuilds: true, + }, + typescript: { + ignoreBuildErrors: true, + }, + logging: { + fetches: { + fullUrl: true, + }, + }, async rewrites() { return { afterFiles: [ diff --git a/ecosystem.config.js b/ecosystem.config.js new file mode 100644 index 000000000..8c5873da0 --- /dev/null +++ b/ecosystem.config.js @@ -0,0 +1,68 @@ +const common = { + exec_mode: 'cluster', + instances: 'max', + + autorestart: true, + max_memory_restart: '1G', + watch: false, + + merge_logs: true, + log_date_format: 'YYYY-MM-DD HH:mm:ss Z', + + env: { + NODE_ENV: 'production', + }, +} + +module.exports = { + apps: [ + { + ...common, + + name: 'cs-app', + cwd: './apps/cs', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3000', + + error_file: './logs/cs-error.log', + out_file: './logs/cs-out.log', + }, + { + ...common, + + name: 'st-app', + cwd: './apps/st', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3001', + + error_file: './logs/st-error.log', + out_file: './logs/st-out.log', + }, + { + ...common, + + name: 'cm-app', + cwd: './apps/cm', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 3002', + + error_file: './logs/cm-error.log', + out_file: './logs/cm-out.log', + }, + { + ...common, + + name: 'features-app', + cwd: './apps/common/features', + + script: 'node_modules/next/dist/bin/next', + args: 'start -p 13000', + + error_file: './logs/feature-error.log', + out_file: './logs/feature-out.log', + }, + ], +}