blob: c54396df2e221f2ca4731926e527d314767b4470 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import "@std/dotenv/load";
import { behindProxy } from "@hongminhee/x-forwarded-fetch";
import federation from "./federation.ts";
import "./logging.ts";
Deno.serve(
{
port: 8000,
onListen: ({ port, hostname }) =>
console.log("Server started at http://" + hostname + ":" + port)
},
behindProxy((req) => federation.fetch(req, { contextData: undefined })),
);
|