Skip to content

Commit 10a5581

Browse files
authored
Merge pull request #87 from LambdaTest/main
Back sync
2 parents 9aa8622 + d46ff99 commit 10a5581

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib/processSnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { scrollToBottomAndBackToTop, getRenderViewports } from "./utils.js"
33
import { chromium, Locator } from "@playwright/test"
44
import constants from "./constants.js";
55

6-
const MAX_RESOURCE_SIZE = 5 * (1024 ** 2); // 5MB
6+
const MAX_RESOURCE_SIZE = 10 * (1024 ** 2); // 10MB
77
var ALLOWED_RESOURCES = ['document', 'stylesheet', 'image', 'media', 'font', 'other'];
88
const ALLOWED_STATUSES = [200, 201];
99
const REQUEST_TIMEOUT = 10000;

src/lib/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import constants from './constants.js';
99

1010
export default async (ctx: Context): Promise<FastifyInstance<Server, IncomingMessage, ServerResponse>> => {
1111

12-
const server: FastifyInstance<Server, IncomingMessage, ServerResponse> = fastify({ logger: false, bodyLimit: 10000000 });
12+
const server: FastifyInstance<Server, IncomingMessage, ServerResponse> = fastify({ logger: ctx.env.LT_SDK_DEBUG ? true : false, bodyLimit: 10000000 });
1313
const opts: RouteShorthandOptions = {};
1414
const SMARTUI_DOM = readFileSync(path.resolve(__dirname, 'dom-serializer.js'), 'utf-8');
1515

0 commit comments

Comments
 (0)