Skip to content

Commit

Permalink
Add params
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Sep 11, 2024
1 parent 7cf545c commit 7a35669
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/get-started/build-aspire-apps-with-nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ The client apps are currently configured to run as true SPA apps, and aren't con

While this article focuses on client apps, you might have scenarios where you need to host a Node.js server app. The same semantics are required to host a Node.js server app as a SPA client app. The .NET Aspire app host requires a package reference to the [Aspire.Hosting.NodeJS](https://nuget.org/packages/Aspire.Hosting.NodeJS) NuGet package and the code needs to call either `AddNodeApp` or `AddNpmApp`. These APIs are useful for adding existing JavaScript apps to the .NET Aspire app host.

When configuring secrets and passing environment variables to JavaScript-based apps, wether they are client or server apps, use parameters. For more information, see [.NET Aspire: External parameters—secrets](../fundamentals/external-parameters.md#secret-values).

### Use the OpenTelemetry JavaScript SDK

To export OpenTelemetry logs, traces, and metrics from a Node.js server app, you use the [OpenTelemetry JavaScript SDK](https://opentelemetry.io/docs/languages/js/).
Expand Down

0 comments on commit 7a35669

Please sign in to comment.