LogtoResource.withDatabase

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
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
postgresPostgresServerResourceThe resource builder for the PostgreSQL server to connect to.
databaseNamestringoptional= logto_dbThe PostgreSQL database name Logto should use.
LogtoResource

Defined on

This method is defined on the following type: