Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WithNodeEnv

Method
📦 CommunityToolkit.Aspire.Hosting.Logto v13.6.1
func (LogtoResource) WithNodeEnv(env string) LogtoResource

Signature

methodWithNodeEnvbuilder
Configures the Logto resource to use the specified Node.js environment value by setting the corresponding environment variable.
WithNodeEnv(env string) LogtoResource
envstringThe value of the Node.js environment variable to set, typically "development", "production", or "test".
LogtoResource

The resource builder for the configured Logto resource.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: