Set Astro’s base to publish the site under a path. Every page, Markdown version and llms.txt moves under it.
Steps
Set the base
In
astro.config.ts:astro.config.tsts export default defineConfig({ base: "/docs", // … });Decide who owns the domain's discovery files
Agent discovery files live at the domain root, not under
/docs. If another site owns the domain, setagents: { discovery: false }in the Nimbus config. Otherwise, see Under a base path for where they go.Build and deploy
npm run buildyarn run buildpnpm run buildbun run buildWith the Cloudflare adapter and static output, deploy with
wrangler deploy --assets ./dist/client.
Verify
Open https://example.com/docs/ and https://example.com/docs/llms.txt. Both load, and links in llms.txt start with /docs/.
Next steps
- Partial builds: serve several Nimbus builds under one hostname.
- Redirects: host rules for a site under a base.