Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/dectyl/lib/handlers.ts>fileFetchHandler

Prototype library for testing Deno Deploy scripts using the Deno CLI
Go to Latest
function fileFetchHandler
import { fileFetchHandler } from "https://deno.land/x/dectyl@0.10.5/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.