-
Hi there! I hesitated creating an issue because I’m not sure if that's expected behavior. In a Rails app with Vite Ruby, running
That third category seems both unnecessary and a risk of data leak? Those source files are also not part of the files listed in the terminal (by Vite or Rollup, not sure) upon a successful build, so I’m wondering if Vite Ruby is copying them over (and why!). Setting Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi Florens! Haven't seen this before, so it's likely related to the app's configuration or dir structure. If I had to guess based on the dir names, it looks like the Vite will copy anything that is inside its Vite Ruby will also process any I'd recommend checking both your Vite Ruby and Vite config, and try using the default configuration (if you have customized it). |
Beta Was this translation helpful? Give feedback.
Hi Florens!
Haven't seen this before, so it's likely related to the app's configuration or dir structure.
If I had to guess based on the dir names, it looks like the
sourceCodeDir
is somehow ending up in Vite's output.Vite will copy anything that is inside its
public
dir, which is one of the possible causes.Vite Ruby will also process any
additionalEntrypoints
. You might want to check that you don't have anassets
dir insidesourceCodeDir
that contains code instead of images/stylesheets, or configure it to exclude that dir.I'd recommend checking both your Vite Ruby and Vite config, and try using the default configuration (if you have customized it).