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

BIN
bun.lockb

Binary file not shown.

View File

@@ -71,6 +71,7 @@
}, },
"devDependencies": { "devDependencies": {
"@effect/schema": "^0.71.1", "@effect/schema": "^0.71.1",
"@prisma/studio-server": "^0.502.0",
"@types/jsonwebtoken": "^9.0.6", "@types/jsonwebtoken": "^9.0.6",
"bun-types": "^1.1.26", "bun-types": "^1.1.26",
"effect": "^3.6.5", "effect": "^3.6.5",

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*() {
// }),
// )
// }))