PrismaStudioRoute
This commit is contained in:
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