Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dectyl/lib/handlers.ts>fileFetchHandler

Prototype library for testing Deno Deploy scripts using the Deno CLI
Latest
function fileFetchHandler
import { fileFetchHandler } from "https://deno.land/x/dectyl@0.10.7/lib/handlers.ts";

A fetch handler that returns local files that are requested by the worker.

This is useful when the worker is attempting to access static assets from its repo using import.meta.url as the base for a fetch request.