Skip to content

Commit

Permalink
fix: migrate is_backend_only (deprecated) to EnvironmentVariables (#4495
Browse files Browse the repository at this point in the history
)
  • Loading branch information
benedikt-bartscher authored Dec 11, 2024
1 parent 4922f7b commit 06d743c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reflex/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Optional

from reflex import constants
from reflex.utils.exec import is_backend_only
from reflex.config import EnvironmentVariables


def asset(
Expand Down Expand Up @@ -52,7 +52,7 @@ def asset(
The relative URL to the asset.
"""
assets = constants.Dirs.APP_ASSETS
backend_only = is_backend_only()
backend_only = EnvironmentVariables.REFLEX_BACKEND_ONLY.get()

# Local asset handling
if not shared:
Expand Down

0 comments on commit 06d743c

Please sign in to comment.