0.1.15 #16
@@ -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",
|
||||
|
||||
29
src/Layers/PrismaStudioRoute.ts
Normal file
29
src/Layers/PrismaStudioRoute.ts
Normal 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*() {
|
||||
|
||||
// }),
|
||||
// )
|
||||
// }))
|
||||
Reference in New Issue
Block a user