Replies: 2 comments 5 replies
-
/cc @aaronpowell - #153 is the only mention of |
Beta Was this translation helpful? Give feedback.
0 replies
-
It looks like something is incorrect in how the |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In my local development I have the env vars
ASPNETCORE_ENVIRONMENT
andDOTNET_ENVIRONMENT
set otDevelopment
.Looks like the deployment is picking this up this value when deploying to Azure, e.g. here's my
aspire-manifest.json
, and in Azure portal theNODE_ENV
env var is set todevelopment
:relevant code:
Aspire/src/CommunityToolkit.Aspire.Hosting.NodeJS.Extensions/NodeJSHostingExtensions.cs
Line 137 in 6821c63
Note: I'm using
builder.AddPnpmApp(...)
, and in the Dockerfile I use this:Any suggestion about how to have
NODE_ENV
set accordingly to the current environment, e.g.development
locally andproduction
on Azure?Should I set the env var explicitly checking
builder.ExecutionContext.IsRunMode
?Beta Was this translation helpful? Give feedback.
All reactions