diff --git a/lambda_function/config.py b/lambda_function/config.py index 00f49dc..b1566b8 100644 --- a/lambda_function/config.py +++ b/lambda_function/config.py @@ -170,7 +170,7 @@ def __init__(self, REQUEST_ORIGIN: str, REQUEST_PATH: str, ID: str = None): if "/website/" in REQUEST_PATH: CONFIG_TYPE = "WEBSITE" if REQUEST_ORIGIN == "": - CONFIG_TYPE = "NEXT" + CONFIG_ENV = "NEXT" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["MASTER"]["ORIGINS"]: CONFIG_ENV = "MASTER" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["NEXT"]["ORIGINS"]: @@ -183,7 +183,7 @@ def __init__(self, REQUEST_ORIGIN: str, REQUEST_PATH: str, ID: str = None): elif "/sharetwin/" in REQUEST_PATH: CONFIG_TYPE = "SHARETWIN" if REQUEST_ORIGIN == "": - CONFIG_TYPE = "NEXT" + CONFIG_ENV = "NEXT" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["MASTER"]["ORIGINS"]: CONFIG_ENV = "MASTER" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["NEXT"]["ORIGINS"]: @@ -191,7 +191,7 @@ def __init__(self, REQUEST_ORIGIN: str, REQUEST_PATH: str, ID: str = None): elif "/vease/" in REQUEST_PATH: CONFIG_TYPE = "VEASE" if REQUEST_ORIGIN == "": - CONFIG_TYPE = "NEXT" + CONFIG_ENV = "NEXT" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["MASTER"]["ORIGINS"]: CONFIG_ENV = "MASTER" elif REQUEST_ORIGIN == CONFIG_DICT[CONFIG_TYPE]["NEXT"]["ORIGINS"]: