When deploying our static blog, we might use a simple Caddyfile. The syntax is remarkably clean compared to Nginx.
:8080 {
root * ./dist
file_server
encode gzip zstd
}
To build the project, we use our custom Deno task:
deno task build
deno task compile
This generates a standalone binary that is blazing fast and easy to deploy.