docs/ts/runtime/service.mdx
Defines an Encore backend service.
Use this class to define a new backend service with the given name. The scope of the service is its containing directory, and all subdirectories.
It must be called from files named encore.service.ts, to enable Encore to
efficiently identify possible service definitions.
new Service(name, cfg?): Service
string
readonly cfg: ServiceConfig
readonly name: string
optional middlewares?: Middleware[]