Skip to content

How to serve Starlight from nested public path (subpath, subdirectory) #2104

Closed Answered by delucis
stereobooster asked this question in Q&A
Discussion options

You must be logged in to vote

This is possible using Astro’s base configuration option instead of the Vite option (which I think has no effect in Astro projects):

export default defineConfig({
  site: "https://example.com/",
  base: "some/thing",
  integrations: [starlight({})],
});

The Astro guide to deploying to GitHub Pages might also be useful.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@stereobooster
Comment options

@delucis
Comment options

Answer selected by delucis
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