| 1 | import * as Config from "effect/Config" |
| 2 | import * as Effect from "effect/Effect" |
| 3 | import * as Schema from "effect/Schema" |
| 4 | |
| 5 | const schema = Schema.Struct({ |
| 6 | API_KEY: Schema.String, |
| 7 | PORT: Schema.Int, |
| 8 | LOCALHOST: Schema.URL |
| 9 | }) |
| 10 | |
| 11 | const config = Config.schema(schema) |
| 12 | |
| 13 | Effect.runFork(config) |