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 wanted to run it-tools using a /ittools/ path prefix so I obviously configured the variable BASE_URL within a .env file I created.
This doesn't seem to work despite being explicitly supported vite.config.ts.
According to the documentation the use of process.env is incorrect here so I made corresponding changes in my own fork (see (vite.config.ts)[https://github.com/kasisoft/other-it-tools/blob/6098e6ddfa3109574e871db226b921abc97c1a39/vite.config.ts#L21C6-L21C57]) which fixes this at least for me.
However process.env is also used for package version so I assume I'm missing something as I'm not a frontend dev.
Can anyone confirm my issue or point me to a solution to fix it without using my custom changes?
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
-
Hi there,
I wanted to run it-tools using a /ittools/ path prefix so I obviously configured the variable BASE_URL within a .env file I created.
This doesn't seem to work despite being explicitly supported vite.config.ts.
According to the documentation the use of process.env is incorrect here so I made corresponding changes in my own fork (see (vite.config.ts)[https://github.com/kasisoft/other-it-tools/blob/6098e6ddfa3109574e871db226b921abc97c1a39/vite.config.ts#L21C6-L21C57]) which fixes this at least for me.
However process.env is also used for package version so I assume I'm missing something as I'm not a frontend dev.
Can anyone confirm my issue or point me to a solution to fix it without using my custom changes?
Beta Was this translation helpful? Give feedback.
All reactions