If you need more control when running Astro, the "astro" package exports APIs to programmatically run the CLI commands.| Docs
Astro is designed to make it easy to deploy to any cloud provider for on-demand rendering, also known as server-side rendering (SSR). This ability is provided by adapters, which are integrations. See the on-demand rendering guide to learn how to use an existing adapter.| Docs