Working reverse proxy
This commit is contained in:
@@ -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,
|
||||
))
|
||||
|
||||
@@ -6,7 +6,13 @@ import { defineConfig } from "vite"
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
server: {
|
||||
host: true,
|
||||
port: 80,
|
||||
|
||||
hmr: {
|
||||
host: "webui.localhost",
|
||||
port: Number(process.env.PORT),
|
||||
},
|
||||
},
|
||||
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user