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 :
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")),
)
...
}
1234567891011
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.