Skip to content

Is the "base" option from the Astro configuration supported? #17

Closed Answered by jlarmstrongiv
rumenpetrov asked this question in Q&A
Discussion options

You must be logged in to vote

If you follow Astro convention, you should only have .astro pages in the pages directory, which means that all of the import paths for images, content, and components should stay the same. I was careful to:

But, there may be a bug with the implementation. Do you have an example on GitHub I could take a look at? Maybe injectPages already prepends the base, so I don’t need to add it there.

Or did you get it to work? I see https://github.com/rumenpetrov/holiday-planner hosted on https://rumenpetrov.github.io/holiday-planner/en/ seems to work fine.

Astro does require you to prepend your links and urls manually:

<a href="/docs/about/">About</a>

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jlarmstrongiv
Comment options

@rumenpetrov
Comment options

@jlarmstrongiv
Comment options

Answer selected by rumenpetrov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants