#Deploy Starlight to Hostinger

6 messages · Page 1 of 1 (latest)

surreal wing
#

I'm trying to add a starlight website inside my portfolio. In hostinger file manager I created a folder named freshdocs. Then I built the starlight app and pasted all the files and folders of dist inside freshdocs folder. Then when I go to joses.dev/freshdocs/everyone/todo the website is there but it has not css styles.

crude marlin
#

Sounds like the CSS can't be found and the request to the stylesheet gets a 404.
What's the generated path/url to the CSS after build?

versed lichen
#

Sounds like you need to add base: '/freshdocs', to your Astro config file because you‘re hosting the site on this subpath

#

Setting the base option to this will ensure that the asset links like CSS also start with this path

surreal wing