From eda313bda03680b1f2c47d8f5807cb605c03c7ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Gallot?= Date: Wed, 9 Oct 2024 16:00:41 +0200 Subject: [PATCH] fix: Assets url generation endpoint --- src/flask_vite/tags.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flask_vite/tags.py b/src/flask_vite/tags.py index 7951f8b..ffe7419 100644 --- a/src/flask_vite/tags.py +++ b/src/flask_vite/tags.py @@ -25,8 +25,8 @@ def make_static_tag(): js_file = Path(glob.glob(f"{vite_folder_path}/dist/assets/*.js")[0]).name css_file = Path(glob.glob(f"{vite_folder_path}/dist/assets/*.css")[0]).name - js_file_url = url_for(f"{vite_folder_path}.static", filename=js_file) - css_file_url = url_for(f"{vite_folder_path}.static", filename=css_file) + js_file_url = url_for("vite.static", filename=js_file) + css_file_url = url_for("vite.static", filename=css_file) return dedent( f"""