termai commited on
Commit
950475f
·
verified ·
1 Parent(s): bf6369f

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +8 -2
index.js CHANGED
@@ -2,6 +2,7 @@ const express = require("express");
2
  const { chromium: origChromium } = require("playwright");
3
  const axios = require("axios")
4
  const Form = require("form-data")
 
5
 
6
  const app = express();
7
  app.use(express.json({ limit: "5mb" }));
@@ -75,6 +76,11 @@ app.post("/", async (req, res) => {
75
  }
76
  });
77
 
78
- app.listen(3000, () => {
79
- console.log("Playwright API server running on port 3000");
 
 
 
 
 
80
  });
 
2
  const { chromium: origChromium } = require("playwright");
3
  const axios = require("axios")
4
  const Form = require("form-data")
5
+ const http = require('http');
6
 
7
  const app = express();
8
  app.use(express.json({ limit: "5mb" }));
 
76
  }
77
  });
78
 
79
+ const port = 3000
80
+ const server = http.createServer({
81
+ maxHeaderSize: 64 * 1024
82
+ }, app);
83
+
84
+ server.listen(PORT, () => {
85
+ console.log(`Server running on port ${PORT}`);
86
  });