Skip to content

Conversation

theTechGoose
Copy link

I wanted to be able to configure the static directory for the static files middleware. i'm just replacing /static path in the file with a parameter in the outer function of the closure.

@marvinhagemeister
Copy link
Collaborator

The static file directory can already be configured with vite's publicDir config. Did you ran into issues with that?

I'm asking because I don't think the proposed changes here will do anything since the build cache is not aware of the new path. So the changes will likely lead to broken apps if the newly added option is used.

@theTechGoose
Copy link
Author

theTechGoose commented Sep 26, 2025 via email

@marvinhagemeister
Copy link
Collaborator

It should work out of the box. It sounds like that's not working for you though and you're running into issues. Would you like to share them with us? Any details you found out help.

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.

2 participants