Deploy Deno static site
Is there a way to deploy a site that uses Deno to build?
I'm using the the Deno Lume static site generator, and I don't see it was one of the build configurations, and I don't see Deno listed as a supported tool here: https://developers.cloudflare.com/pages/platform/language-support-and-tools/
Language support and tools · Cloudflare Pages docs
Cloudflare Pages’ build environment has broad support for a variety of languages, such as Ruby, Node.js, Python, PHP, and Go.
4 Replies
You'd have to install Deno as part of your build command
Okay, that seems like it should be straightforward enough using a command like:
It would be slow and cost time to do so. Is it possible to cache the installation like caching npm pacakges?
it's pretty fast to install deno through a build script but it's annoying, yeah. i know cloudflare supports caching these days (https://developers.cloudflare.com/pages/configuration/build-caching/#frameworks) so assuming we were able to pull deno dependencies to a cached directory that would speed things up nicely most likely
in my case (a site with 425 pages) it spends 5 seconds on dependencies alone out of 1.5 minute total. that's not bad but at the same time it's nice to avoid the cost if possible