-
|
Hi 👋🏼 , Webpacker::Compiler.env['VALUE'] = Rails.application.credentials.dig(:value) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Hi Pedro! The equivalent would be: ViteRuby.env['VALUE'] = Rails.application.credentials.dig(:value)If you are planning to use the environment variable in client code, you might want to check |
Beta Was this translation helpful? Give feedback.
-
|
@ElMassimo I'm sorry, but I didn't understand where I should put this? I'd tried to add it to |
Beta Was this translation helpful? Give feedback.
Hi Pedro! The equivalent would be:
If you are planning to use the environment variable in client code, you might want to check
vite-plugin-environment, or alternatively prefix it withVITE_.