diff --git a/apps/server/src/main.test.ts b/apps/server/src/main.test.ts index 85469ffb0f5c53b27cb720fe0351b207b1e0cdf4..c16fe9aabe999854911ec494b916411c59e766e2 100644 --- a/apps/server/src/main.test.ts +++ b/apps/server/src/main.test.ts @@ -24,7 +24,7 @@ const testLayer = Layer.mergeAll( cwd: "/tmp/t3-test-workspace", fixPath: Effect.void, findAvailablePort, - resolveStaticDir: () => Effect.undefined, + resolveStaticDir: Effect.undefined, } satisfies CliConfigShape), Layer.succeed(Server, { createServer, diff --git a/apps/server/src/main.ts b/apps/server/src/main.ts index 077934ad602f637574cb2217cda4a95ebb7ac9ce..535b71d3f3285f2fb23097d2fdfe1d187d95e7fe 100644 --- a/apps/server/src/main.ts +++ b/apps/server/src/main.ts @@ -26,7 +26,7 @@ export interface CliConfigShape { readonly cwd: string; readonly fixPath: Effect.Effect; readonly findAvailablePort: (preferred: number) => Effect.Effect; - readonly resolveStaticDir: () => Effect.Effect; + readonly resolveStaticDir: Effect.Effect; } export class CliConfig extends ServiceMap.Service()( @@ -141,7 +141,7 @@ const resolveCliConfig = Effect.fn(function* (input: CliInput) { const devUrl = env.devUrl; const noBrowser = env.noBrowser ?? mode === "desktop"; const authToken = Option.getOrUndefined(input.token) ?? env.authToken; - const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir(); + const staticDir = devUrl ? undefined : yield* cliConfig.resolveStaticDir; return { mode, @@ -245,11 +245,10 @@ export const CliConfigLive = Layer.effect( cwd: process.cwd(), fixPath: Effect.sync(fixPath), findAvailablePort, - resolveStaticDir: () => - resolveStaticDir().pipe( - Effect.provideService(FileSystem.FileSystem, fileSystem), - Effect.provideService(Path.Path, path), - ), + resolveStaticDir: resolveStaticDir().pipe( + Effect.provideService(FileSystem.FileSystem, fileSystem), + Effect.provideService(Path.Path, path), + ), } satisfies CliConfigShape; }), );