PrismaStudioRoute

This commit is contained in:
Julien Valverdé
2024-08-26 23:11:07 +02:00
parent 9348178b0f
commit 67bf12d7a9
3 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
// import { StudioServer } from "@prisma/studio-server"
// import { Config, Effect, Layer } from "effect"
// export const PrismaStudioRouteLive = ({
// httpPort = Config.succeed(5555),
// schemaPath = Config.succeed(""),
// schemaText = Config.succeed(""),
// }: {
// httpPort: Config.Config<number>
// schemaPath: Config.Config<string>
// schemaText: Config.Config<string>
// }) =>
// Layer.effectDiscard(Effect.gen(function*() {
// return Effect.acquireRelease(
// Effect.gen(function*() {
// const server = new StudioServer({
// port: yield* httpPort,
// schemaPath: yield* schemaPath,
// schemaText: yield* schemaText,
// })
// }),
// () => Effect.gen(function*() {
// }),
// )
// }))