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
Hello,
Thank you for your plugin. I just found a problem when using it in Vite projects when setting the base URL config.
The plugin adds the following line to the html entrypoint: <script src="/env-config.js"></script>
The problem is that when using a base url with Vite, it is not prepended to the URL, i.e.:
defineConfig({
base: "/sub/path"
})
the correct injection should be: <script src="/sub/path/env-config.js"></script>
But Vite doesn't prepend it as usual (maybe it is injected after the vite html processing?)
How can it be solved? Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
Thank you for your plugin. I just found a problem when using it in Vite projects when setting the
base
URL config.The plugin adds the following line to the html entrypoint:
<script src="/env-config.js"></script>
The problem is that when using a base url with Vite, it is not prepended to the URL, i.e.:
defineConfig({
base: "/sub/path"
})
the correct injection should be:
<script src="/sub/path/env-config.js"></script>
But Vite doesn't prepend it as usual (maybe it is injected after the vite html processing?)
How can it be solved? Thanks.
The text was updated successfully, but these errors were encountered: