def env_asset_url_default(endpoint, values):
    """
    Create asset URLs dependent on the current env

    In CTFd 4.0 this url_for behavior and the themes_beta
    route will be removed in favor of an improved theme system
    """
    if endpoint == "views.themes":
        path = values.get("path", "")
        static_asset = path.endswith(".js") or path.endswith(".css")
        direct_access = ".dev" in path or ".min" in path
        if static_asset and not direct_access:
            env = values.get("env", current_app.env)
            mode = ".dev" if env == "development" else ".min"
            base, ext = os.path.splitext(path)
            values["path"] = base + mode + ext

    Create asset URLs dependent on the current env

    In CTFd 4.0 this url_for behavior and the themes_beta
    route will be removed in favor of an improved theme system
    
CTFd/utils/helpers/__init__.py