Skip to content

Commit

Permalink
fix: Correct static files configuration in VitePlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cj authored and cofin committed Jan 4, 2025
1 parent 7e66df5 commit 9c0a016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,4 @@ cython_debug/
.vscode

node_modules
.aider*
2 changes: 1 addition & 1 deletion src/py/litestar_vite/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9c0a016

Please sign in to comment.