withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.96k stars 2.5k forks source link

Config's `base` option producing unexpected asset paths #4229

Closed HappyTiptoe closed 2 years ago

HappyTiptoe commented 2 years ago

What version of astro are you using?

1.0.1

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

None

What package manager are you using?

yarn

What operating system are you using?

Linux (Fedora 36)

Describe the Bug

At my company, we create websites for clients, and need to be able to host websites at paths which may change. By referencing assets via ./, this makes the website path agnostic, and doesn't require a rebuild should the path change.

Unfortunately, the base option in astro.config.mjs is not allowing for such a value, which is causing issues with asset/stylesheet referencing.

Config

### Config I have `base` set to `"./"` in my config file. With this, I expect ``s, ` Githubissues.
  • Githubissues is a development platform for aggregating issues.