fix: migrate is_backend_only (deprecated) to EnvironmentVariables (#4495)
This commit is contained in:
parent
4922f7ba05
commit
06d743cda9
@ -5,7 +5,7 @@ from pathlib import Path
|
|||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
from reflex import constants
|
from reflex import constants
|
||||||
from reflex.utils.exec import is_backend_only
|
from reflex.config import EnvironmentVariables
|
||||||
|
|
||||||
|
|
||||||
def asset(
|
def asset(
|
||||||
@ -52,7 +52,7 @@ def asset(
|
|||||||
The relative URL to the asset.
|
The relative URL to the asset.
|
||||||
"""
|
"""
|
||||||
assets = constants.Dirs.APP_ASSETS
|
assets = constants.Dirs.APP_ASSETS
|
||||||
backend_only = is_backend_only()
|
backend_only = EnvironmentVariables.REFLEX_BACKEND_ONLY.get()
|
||||||
|
|
||||||
# Local asset handling
|
# Local asset handling
|
||||||
if not shared:
|
if not shared:
|
||||||
|
Loading…
Reference in New Issue
Block a user