Skip to content

Commit

Permalink
feat: adds set_environment call to server lifespan
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Dec 19, 2023
1 parent 1275c56 commit 0784c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions litestar_vite/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def server_lifespan(self, app: Litestar) -> Iterator[None]:

from litestar_vite.commands import execute_command

set_environment(config=self._config)
if self.config.use_server_lifespan and self._config.dev_mode:
command_to_run = self._config.run_command if self._config.hot_reload else self._config.build_watch_command

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ license = {text = "MIT"}
name = "litestar-vite"
readme = "README.md"
requires-python = ">=3.8"
version = "0.1.11"
version = "0.1.12"

[project.urls]
Changelog = "https://cofin.github.io/litestar-vite/latest/changelog"
Expand Down

0 comments on commit 0784c3e

Please sign in to comment.