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
If the issue is related to 1.x -> 2.0 upgrade, read the Migration Guide first.
Describe the bug
Setting base to an empty string is ignored by vite and it uses / instead. We need this as our app is deployed at varying base URLs that are unknown at build time.
I'm not entirely sure whether this works as intended or not as the docs don't explicitly mention this case. But it at least used to work up to 2.0.0-beta.37, but was probably broken by 809d4bd, while @vitejs/plugin-legacy still produces the expected path without / prefix.
Reproduction
Simply set base to '' in the config.
System Info
vite version: 2.0.0-beta.44
Operating System: MacOS
Node version: 14.15.4
Package manager (npm/yarn/pnpm) and version: yarn
The text was updated successfully, but these errors were encountered:
Describe the bug
Setting
base
to an empty string is ignored by vite and it uses/
instead. We need this as our app is deployed at varying base URLs that are unknown at build time.I'm not entirely sure whether this works as intended or not as the docs don't explicitly mention this case. But it at least used to work up to 2.0.0-beta.37, but was probably broken by 809d4bd, while
@vitejs/plugin-legacy
still produces the expected path without/
prefix.Reproduction
Simply set base to
''
in the config.System Info
vite
version: 2.0.0-beta.44The text was updated successfully, but these errors were encountered: