From 92f91147c1a5ef06befbafd0c74ebae8493dccfe Mon Sep 17 00:00:00 2001 From: ilco Date: Sun, 21 Dec 2025 20:20:14 +0900 Subject: [PATCH] Fix: reflect subfolder in source path check for shared assets --- reflex/assets.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflex/assets.py b/reflex/assets.py index 693041b7a18..adf56bf0578 100644 --- a/reflex/assets.py +++ b/reflex/assets.py @@ -73,7 +73,7 @@ def asset( assert module is not None external = constants.Dirs.EXTERNAL_APP_ASSETS - src_file_shared = Path(calling_file).parent / path + src_file_shared = Path(calling_file).parent / (Path(subfolder) / path if subfolder else path) if not src_file_shared.exists(): msg = f"File not found: {src_file_shared}" raise FileNotFoundError(msg)