diff --git a/bun.lockb b/bun.lockb index 5ff5c9a..d1ec656 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 7600ee7..bb7df17 100644 --- a/package.json +++ b/package.json @@ -71,6 +71,7 @@ }, "devDependencies": { "@effect/schema": "^0.71.1", + "@prisma/studio-server": "^0.502.0", "@types/jsonwebtoken": "^9.0.6", "bun-types": "^1.1.26", "effect": "^3.6.5", diff --git a/src/Layers/PrismaStudioRoute.ts b/src/Layers/PrismaStudioRoute.ts new file mode 100644 index 0000000..d423266 --- /dev/null +++ b/src/Layers/PrismaStudioRoute.ts @@ -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 +// schemaPath: Config.Config +// schemaText: Config.Config +// }) => +// 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*() { + +// }), +// ) +// }))