Skip to content

Source maps on staging? (vite_rails) #224

Answered by ElMassimo
evenreven asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

As discussed in the Configuration section, source maps are enabled by default in production, and since vite-plugin-ruby@3.0.9 in staging as well.

Which version of vite-plugin-ruby are you using? Also, is your staging environment building using the production Rails env? Sourcemaps should be enabled even if your Rails environment was named staging (not recommended by modern practices, but common back in the day).

Looking at your vite.config.ts, I don't see any plugins which would explicitly disable sourcemaps, but I'd recommend running DEBUG="vite-plugin-ruby*" bin/vite build and verify that build.sourcemap is set to true.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@evenreven
Comment options

@ElMassimo
Comment options

@evenreven
Comment options

@evenreven
Comment options

Answer selected by evenreven
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants