Skip to content

🐛 BUG: import.meta.env.BASE_URL is incorrect when i set base config. #3567

@leon-kfd

Description

@leon-kfd

What version of astro are you using?

1.0.0-beta.42

Are you using an SSR adapter? If so, which one?

None

What package manager are you using?

yarn

What operating system are you using?

Windows

Describe the Bug

Set base config to '/blog' in astro.config.mjs, but import.meta.env.BASE_URL is still '/'.
image

Link to Minimal Reproducible Example

https://stackblitz.com/edit/github-rtg6u1?file=astro.config.mjs&on=stackblitz

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P2: nice to haveNot breaking anything but nice to have (priority)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions