I am having a problem deploying my deno code using deno deploy. The code works perfectly locally using deployctl but fails when deployed.
import { Application } from "./deps.ts";
const app = new Application();
// Send static content
app.use(async (context) => {
await context.send({
root: `${Deno.cwd()}/public`,
index: "index.html",
});
});
addEventListener("fetch", app.fetchEventHandler());
It is a simple server that serves static files from the public directory. Any help appreciated. Thanks