Merge remote-tracking branch 'origin/pr-8398' into fix/evaluate-body-limit

This commit is contained in:
Pradeep Elankumaran
2026-08-01 17:14:19 -07:00
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ function log(level, msg, fields = {}) {
}
const app = express();
app.use(express.json({ limit: '100kb' }));
app.use(express.json({ limit: CONFIG.maxBodySize }));
// Request logging + metrics middleware
app.use((req, res, next) => {
@@ -4581,7 +4581,7 @@ app.get('/tabs/:tabId/stats', async (req, res) => {
* schema:
* $ref: '#/components/schemas/Error'
*/
app.post('/tabs/:tabId/evaluate', express.json({ limit: '1mb' }), async (req, res) => {
app.post('/tabs/:tabId/evaluate', express.json({ limit: CONFIG.maxBodySize }), async (req, res) => {
try {
const { userId, expression } = req.body;
if (!userId) return res.status(400).json({ error: 'userId is required' });