Sveltekit PM2 ecosystem
-
ecosystem.config.cjs
module.exports = { apps: [ { name: 'name_app', script: './build/index.js', watch: false, // ignore_watch: ['database'], autorestart: true, env: { PORT: 3000, ENV_PATH: "./.env.local", } } ] };
-
NodeJS Build
npm i -D @sveltejs/adapter-node
File: svelte.config.js
import adapter from '@sveltejs/adapter-node';