update build process and environment configuration

This commit is contained in:
GW_MC
2026-01-23 18:31:16 +08:00
parent e782c5d8ac
commit fbe96ea9f8
4 changed files with 19 additions and 3 deletions

12
ecosystem.config.js Normal file
View File

@@ -0,0 +1,12 @@
module.exports = {
apps: [
{
name: 'IotDis',
script: './build/index.js',
env: {
NODE_ENV: 'production',
},
watch: ['./build', './ecosystem.config.js', './.env'],
},
],
};