From 1370204a8b13428eef8048fd27419c6d0b3b729a Mon Sep 17 00:00:00 2001 From: Benedikt Bartscher Date: Sun, 27 Oct 2024 23:03:38 +0100 Subject: [PATCH] use new is_backend_only in assets --- reflex/experimental/assets.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reflex/experimental/assets.py b/reflex/experimental/assets.py index 36a4b6885..a8c01240b 100644 --- a/reflex/experimental/assets.py +++ b/reflex/experimental/assets.py @@ -6,6 +6,7 @@ from pathlib import Path from typing import Optional from reflex import constants +from reflex.utils.exec import is_backend_only def asset( @@ -48,7 +49,7 @@ def asset( The relative URL to the asset. """ assets = constants.Dirs.APP_ASSETS - backend_only = os.environ.get(constants.ENV_BACKEND_ONLY, "false").lower() == "true" + backend_only = is_backend_only() # Local asset handling if not shared: