#How to use base configuration?

6 messages · Page 1 of 1 (latest)

stone bloom
#

I have been scratching my head over this issue. I am new to Astro so please bear with me.
I have deployed a site with base property set to "/blog" and site property to "https://example.com/". Now I expect my astro site to be deployed at "https://example.com/blog". I have also changed the url for assets to include base URL from environment. Yet when I deploy the site /blog gives me 404 and I am able to navigate the site without prefix /blog but the assets fail to load and give 404 because they expect assets to be available at /blog/*.

split oracle
stone bloom
#

@split oracle thank you for your response. I have already tried adding base property in astro.config.mjs. It doesn't work for me.

split oracle
#

there are multiple tricks, but people manage, you need to gear up to the next support level, by providing a minimal reproduction repo and people can help you get it fixed.

  • rule number 1 : how can you test it ?
  • rule number 2 : how can you reproduce it
#

where do you deploy, github pages ?

stone bloom