diff --git a/.gitignore b/.gitignore index 7b796ef..bb4d901 100644 --- a/.gitignore +++ b/.gitignore @@ -166,3 +166,4 @@ cython_debug/ .vscode node_modules +.aider* diff --git a/src/py/litestar_vite/plugin.py b/src/py/litestar_vite/plugin.py index 643d721..7bdd6d4 100644 --- a/src/py/litestar_vite/plugin.py +++ b/src/py/litestar_vite/plugin.py @@ -180,7 +180,7 @@ def on_app_init(self, app_config: AppConfig) -> AppConfig: "include_in_schema": False, "opt": {"exclude_from_auth": True}, } - static_files_config: dict[str, Any] = {**base_config, **self._static_files_config.__dict__} + static_files_config: dict[str, Any] = {**base_config, **self._static_files_config} app_config.route_handlers.append(create_static_files_router(**static_files_config)) return app_config