const myApiBasePath = '/custom-base'
// Instead of HttpApiBuilder.serve
const serve = HttpApiBuilder.httpApp.pipe(
Effect.map(app =>
HttpRouter.empty.pipe(
HttpRouter.mountApp(myApiBasePath, app),
)
),
Effect.map(HttpServer.serve(HttpMiddleware.logger)),
Layer.unwrapEffect,
Layer.provide(HttpApiBuilder.Router.Live),
)
const myApiBasePath = '/custom-base'
// Instead of HttpApiBuilder.serve
const serve = HttpApiBuilder.httpApp.pipe(
Effect.map(app =>
HttpRouter.empty.pipe(
HttpRouter.mountApp(myApiBasePath, app),
)
),
Effect.map(HttpServer.serve(HttpMiddleware.logger)),
Layer.unwrapEffect,
Layer.provide(HttpApiBuilder.Router.Live),
)