This commit is contained in:
2026-02-26 04:08:06 +01:00
parent 8177df7dd3
commit f7c0e927c7
39 changed files with 1003 additions and 306 deletions
+19
View File
@@ -0,0 +1,19 @@
import path from "path";
import grabConfig from "../functions/grab-config";
export default async function grabConstants() {
const config = await grabConfig();
const MB_IN_BYTES = 1024 * 1024;
const ClientWindowPagePropsName = "__PAGE_PROPS__";
const ClientRootElementIDName = "__bunext";
const ServerDefaultRequestBodyLimitBytes = MB_IN_BYTES * 10;
return {
ClientRootElementIDName,
ClientWindowPagePropsName,
MBInBytes: MB_IN_BYTES,
ServerDefaultRequestBodyLimitBytes,
};
}