Deno Deploy

Configuration

Frugal can export your project for Deno Deploy. To do so, you have to choose where the page cache will be stored :

  • in Deno KV (still in beta on Deno Deploy) with DenoKVCache
  • in Upstash with UpstashCache

have to configure an Exporter :

frugal.config.ts
import { DenoExporter, UpstashCache } from "https://deno.land/x/frugal@0.9.5/mod.ts";

export default {
    ...
    exporter:  new DenoExporter(
        new UpstashCache(
            Deno.env.get("UPSTASH_URL"), 
            Deno.env.get("UPSTASH_TOKEN")),
    )
    ...
}
1
2
3
4
5
6
7
8
9
10
11

Deployment

When running a build script, the exporter will output a deno folder in the outdir.

Inside this folder, the file entrypoint.mjs should be the entrypoint of your deployment.