You can deploy a static or on-demand rendered Astro site using Deno, either on your own server, or to Deno Deploy, a distributed system that runs JavaScript, TypeScript, and WebAssembly at the edge, worldwide.
This guide includes instructions for running your Astro site on your own server with Deno, and deploying to Deno Deploy through GitHub Actions or the Deno Deploy CLI.
Requirements
Section titled “Requirements”This guide assumes you already have Deno installed.
Project Configuration
Section titled “Project Configuration”Your Astro project can be deployed as a static site, or as an on-demand rendered site.
Static Site
Section titled “Static Site”Your Astro project is a static site by default. You don’t need any extra configuration to deploy a static Astro site with Deno, or to Deno Deploy.
Adapter for on-demand rendering
Section titled “Adapter for on-demand rendering”To enable on-demand rendering in your Astro project using Deno, and to deploy on Deno Deploy:
How to deploy
Section titled “How to deploy”You can run your Astro site on your own server, or deploy to Deno Deploy through GitHub Actions or using Deno Deploy’s CLI (command line interface).
On your own server
Section titled “On your own server”GitHub Actions Deployment
Section titled “GitHub Actions Deployment”If your project is stored on GitHub, the Deno Deploy website will guide you through setting up GitHub Actions to deploy your Astro site.