You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would love to be able to programatically define index.html variables in the define: {} config, however the values don't seem to show up in index.html? I've tried setting them in multiple ways, but it doesn't work:
LANGUAGE: getLanguage(),
'import.meta.env.LANGUAGE': getLanguage(),
'process.env.LANGUAGE': getLanguage()
also with vite and custom prefix, to no avail. any ideas on this? or does index.html ignore define: {} config by design?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I would love to be able to programatically define index.html variables in the
define: {}
config, however the values don't seem to show up in index.html? I've tried setting them in multiple ways, but it doesn't work:LANGUAGE: getLanguage(),
'import.meta.env.LANGUAGE': getLanguage(),
'process.env.LANGUAGE': getLanguage()
also with vite and custom prefix, to no avail. any ideas on this? or does
index.html
ignoredefine: {}
config by design?Beta Was this translation helpful? Give feedback.
All reactions