Updates
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user