Skip to content
DocsTry Aspire
DocsTry

LogtoResource.withDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.5.0
interface LogtoResource {
// ... omitted for brevity
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource;
}

Signature

methodwithDatabasebuilder
Configures the Logto resource to connect to the specified PostgreSQL database.
withDatabase(
postgres: PostgresServerResource,
databaseName?: string): LogtoResource
postgresPostgresServerResource
databaseNamestringoptional= logto_db
LogtoResource

Defined on

This method is defined on the following type: