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
kian
kian16mo ago
You'd have to install Deno as part of your build command
leigh
leighOP16mo ago
Okay, that seems like it should be straightforward enough using a command like:
curl -fsSL https://deno.land/x/install/install.sh | sh && /opt/buildhome/.deno/bin/deno task build
curl -fsSL https://deno.land/x/install/install.sh | sh && /opt/buildhome/.deno/bin/deno task build
Đăng Tú
Đăng Tú13mo ago
It would be slow and cost time to do so. Is it possible to cache the installation like caching npm pacakges?
bebraw
bebraw7mo ago
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
Want results from more Discord servers?
Add your server