Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: serve public_dir if it exists #17

Merged
merged 10 commits into from
Mar 16, 2024
Merged

fix: serve public_dir if it exists #17

merged 10 commits into from
Mar 16, 2024

Conversation

cofin
Copy link
Member

@cofin cofin commented Mar 16, 2024

This PR enables Litestar to optionally server the publicDir configuration of Vite if it's configured and exists.

This addreses several Vite usage scenarios where a public folder might be useful.

It also allows for the configuration of the root_path. This controls where files are templated and where the directory vite commands are executed.

@cofin cofin changed the title fix: server public_dir if it exists fix: serve public_dir if it exists Mar 16, 2024
@cofin cofin linked an issue Mar 16, 2024 that may be closed by this pull request
@cofin cofin merged commit 96c5ba2 into main Mar 16, 2024
7 checks passed
@cofin cofin deleted the public-folder-expose branch March 16, 2024 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjusting file locations for Vite-related assets
1 participant