Added deployment files

This commit is contained in:
Oleksandr Prokhorenko
2026-09-24 23:09:44 +03:00
parent 7f3a56a4ca
commit c345a8e91f
14 changed files with 402 additions and 5 deletions
+1
View File
@@ -7,6 +7,7 @@ export const env = z
.url()
.default('postgresql://merchantflow:merchantflow_local@localhost:55440/merchantflow'),
API_PORT: z.coerce.number().default(3001),
API_HOST: z.string().min(1).default('127.0.0.1'),
APP_ORIGIN: z.url().default('http://localhost:5173'),
NODE_ENV: z.string().default('development'),
})
+2 -2
View File
@@ -1,5 +1,5 @@
import { createApp } from './app.js';
import { env } from './env.js';
const app = await createApp();
await app.listen(env.API_PORT, '127.0.0.1');
console.log(`MerchantFlow API: http://localhost:${env.API_PORT}/api/health`);
await app.listen(env.API_PORT, env.API_HOST);
console.log(`MerchantFlow API: http://${env.API_HOST}:${env.API_PORT}/api/health`);