11 lines
372 B
JavaScript
11 lines
372 B
JavaScript
const app = require('./app');
|
|
|
|
// Default 3001 — Next.js owns 3000 locally and in production. The poller,
|
|
// internal cron, and BASE_URL conventions all assume 3001 for the Express
|
|
// backend. PORT env still overrides for special-case deploys.
|
|
const PORT = process.env.PORT || 3001;
|
|
|
|
app.listen(PORT, () => {
|
|
console.log(`[VYNDR] Server running on port ${PORT}`);
|
|
});
|