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.
6 Replies
kian
kian3y ago
You'd have to install Deno as part of your build command
leigh
leighOP3y 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ú3y ago
It would be slow and cost time to do so. Is it possible to cache the installation like caching npm pacakges?
bebraw
bebraw2y 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
mauritz
mauritz6mo ago
@leigh @bebraw I created a ticket around this in case you still see the value in supporting Deno as part of the Pages build ecosystem: https://community.cloudflare.com/t/support-denojs-in-pages-build-image/814496
bebraw
bebraw6mo ago
awesome, thanks a lot. you have my vote 👍

Did you find this page helpful?