exportconstIS_DEBUG=ENVIRONMENT.toLowerCase()==="dev"||ENVIRONMENT.toLowerCase()==="stage";// IS_DEBUG can be used to enable test endpoints, unsafe code and more.
exportconstPROJECT_NAME=process.env.PROJECT_NAME??"BasedServer";// Default prefix for the logger module.
exportconstBODY_SIZE_LIMIT=process.env.BODY_SIZE_LIMIT??"10mb";// Doesn't accept requests with body sizes larger than this value.
exportconstSERVER_URL=process.env.SERVER_URL??"localhost";// The server's URL. Not used for a lot by default.
exportconstDASHBOARD_URL=process.env.DASHBOARD_URL??"localhost:5173";// The server's URL. Not used for a lot by default.
exportconstPORT=process.env.PORT??6677;// Port for the server to run on.
exportconstENDPOINT_AUTHENTICATION_ENABLED=!!process.env.ENDPOINT_AUTHENTICATION;// Whether the server is locked down behind a header.
exportconstDASHBOARD_ROOT=`http${USE_HTTPS?"s":""}://${DASHBOARD_URL}`;// A shortcut so that you don't need to type this out every time you wanna display the dashboard URL.
exportconstFULL_SERVER_ROOT=`http${USE_HTTPS?"s":""}://${SERVER_URL}${!USE_HTTPS?`:${PORT}`:""}`;// A shortcut so that you don't need to type this out every time you wanna display the server URL.
exportconstCOOKIE_SIGN_KEY=process.env.COOKIE_SIGN_KEY;// Secret that will be used to sign cookies.
exportconstADMIN_KEY=process.env.ADMIN_KEY;// Secret that will be required to sign into the Admin Dashboard.
exportconstJWT_KEY=process.env.JWT_KEY;// Secret that will be required to sign JSON Web Tokens (JWTs).
exportconstBOT_TOKEN=process.env.BOT_TOKEN;// Used for Discord-related stuff.
exportconstDISCORD_CLIENT_ID=process.env.DISCORD_CLIENT_ID;// Client ID for authentication and checking what role you have on the Discord server.
exportconstDISCORD_CLIENT_SECRET=process.env.DISCORD_CLIENT_SECRET;// Client secret for authentication and checking what role you have on the Discord server.