import.meta.env.BASE_URL is including a trailing slash #6623
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
semver: major
Change triggers a `major` release
What version of
astro
are you using?2.1.4
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows
What browser are you using?
Firefox
Describe the Bug
When I call
import.meta.env.BASE_URL
in mysrc
files, it includes a trailing slash that renders incorrectly ashttp://localhost/foo//bar
.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-wccs8f?file=src/pages/index.astro
Participation
The text was updated successfully, but these errors were encountered: