Working reverse proxy

This commit is contained in:
Julien Valverdé
2024-07-17 01:43:21 +02:00
parent 2497aaa236
commit 2daf60faf3
4 changed files with 67 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
import { BunRuntime } from "@effect/platform-bun"
import { Todo } from "@todo-tests/common/data"
import { Duration, Effect, Layer, Match, Option } from "effect"
import { Duration, Effect, Layer, Logger, Match, Option } from "effect"
import { ServerConfig } from "./ServerConfig"
import { Services } from "./Services"
import { ExpressApp } from "./http/ExpressApp"
@@ -105,5 +105,6 @@ const main = Effect.gen(function*() {
BunRuntime.runMain(main.pipe(
Effect.provide(Services.Dev),
Effect.provide(Logger.structured),
Effect.scoped,
))