Config: increase read file size for --inject-script-file

This commit is contained in:
Halil Durak
2026-04-29 16:56:22 +03:00
parent 246f91d1f8
commit 60d721caa2

View File

@@ -140,7 +140,7 @@ fn injectScriptFileValidator(
return error.InvalidArgument;
};
const bytes = std.fs.cwd().readFileAllocOptions(allocator, path, 1024 * 1024, null, .of(u8), 0) catch |err| {
const bytes = std.fs.cwd().readFileAllocOptions(allocator, path, std.math.maxInt(usize), null, .of(u8), null) catch |err| {
log.fatal(.app, "failed to read file", .{ .arg = "--inject-script-file", .path = path, .err = err });
return error.InvalidArgument;
};