Description 📖
When an entrypoint that is included with vite_typescript_tag is missing, vite_ruby dumps the whole Vite config, build status, manifest etc, which can be helpful in development. In our case though, it is over 1 million lines worth (because the manifest JSON is pretty printed).
We noticed that it does this in UAT/staging, causing 1mil log lines to be saved to uat.log/staging.log, which then gets picked up and sent to our logging service in the space of 1 minute.
We need a way to turn off this debug dump in production/uat/staging environments, but there doesn't not seem to be any way to do so currently.
Relavant bits:
No config options to turn this off or to minimize the output.
bundle update vite_ruby.Description 📖
When an entrypoint that is included with
vite_typescript_tagis missing, vite_ruby dumps the whole Vite config, build status, manifest etc, which can be helpful in development. In our case though, it is over 1 million lines worth (because the manifest JSON is pretty printed).We noticed that it does this in UAT/staging, causing 1mil log lines to be saved to uat.log/staging.log, which then gets picked up and sent to our logging service in the space of 1 minute.
We need a way to turn off this debug dump in production/uat/staging environments, but there doesn't not seem to be any way to do so currently.
Relavant bits:
vite_ruby/vite_ruby/lib/vite_ruby/manifest.rb
Lines 78 to 80 in d4bd2ef
vite_ruby/vite_ruby/lib/vite_ruby/manifest.rb
Lines 216 to 223 in d4bd2ef
No config options to turn this off or to minimize the output.