Spaces:
Sleeping
Sleeping
Update server.js
Browse files
server.js
CHANGED
|
@@ -4,7 +4,7 @@ import { runLogin } from './login.js';
|
|
| 4 |
import { JSDOM } from 'jsdom';
|
| 5 |
import { Readability } from '@mozilla/readability';
|
| 6 |
|
| 7 |
-
const PORT = process.env.PORT;
|
| 8 |
const TIMEOUT = 15000;
|
| 9 |
const API_KEY = process.env.API_KEY || '';
|
| 10 |
|
|
@@ -50,4 +50,4 @@ app.post('/login', async (req,res)=>{
|
|
| 50 |
res.json(out);
|
| 51 |
});
|
| 52 |
|
| 53 |
-
app.listen(PORT, ()=>console.log('🚀 API ready on',PORT));
|
|
|
|
| 4 |
import { JSDOM } from 'jsdom';
|
| 5 |
import { Readability } from '@mozilla/readability';
|
| 6 |
|
| 7 |
+
const PORT = process.env.PORT || 7860;
|
| 8 |
const TIMEOUT = 15000;
|
| 9 |
const API_KEY = process.env.API_KEY || '';
|
| 10 |
|
|
|
|
| 50 |
res.json(out);
|
| 51 |
});
|
| 52 |
|
| 53 |
+
app.listen(PORT, '0.0.0.0', ()=>console.log('🚀 API ready on',PORT));
|