-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8e5dd76
commit 19234f4
Showing
4 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
samples/AspireWithJavaScript/AspireJavaScript.Angular/proxy.conf.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
samples/AspireWithJavaScript/AspireJavaScript.AppHost/Program.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
var builder = DistributedApplication.CreateBuilder(args); | ||
|
||
var weatherApi = | ||
builder.AddProject<Projects.AspireJavaScript_MinimalApi>("weatherApi"); | ||
builder.AddProject<Projects.AspireJavaScript_MinimalApi>("weatherapi"); | ||
|
||
// Angular: npm run start | ||
builder.AddNpmApp("angular", "../AspireJavaScript.Angular") | ||
.WithReference(weatherApi) | ||
.WithServiceBinding(scheme: "http", env: "PORT") | ||
.WithServiceBinding(containerPort: 3000, scheme: "http", env: "PORT") | ||
.AsDockerfileInManifest(); | ||
|
||
// React: npm run start | ||
builder.AddNpmApp("react", "../AspireJavaScript.React") | ||
.WithReference(weatherApi) | ||
.WithServiceBinding(scheme: "http", env: "PORT") | ||
.WithServiceBinding(containerPort: 3001, scheme: "http", env: "PORT") | ||
.AsDockerfileInManifest(); | ||
|
||
// Vue: npm run dev | ||
builder.AddNpmApp("vue", "../AspireJavaScript.Vue", "dev") | ||
.WithReference(weatherApi) | ||
.WithServiceBinding(scheme: "http", env: "PORT") | ||
.WithServiceBinding(containerPort: 3002, scheme: "http", env: "PORT") | ||
.AsDockerfileInManifest(); | ||
|
||
builder.Build().Run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# In order to consume environment variables in React, we need to prefix them with REACT_APP_. | ||
REACT_APP_WEATHER_API=$services__weatherApi__1 | ||
REACT_APP_WEATHER_API=$services__weatherapi__1 | ||
# Disable opening browser on npm start | ||
BROWSER=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# In order to consume environment variables in Vue with Vite, we need to prefix them with VITE_. | ||
VITE_WEATHER_API=$services__weatherApi__1 | ||
VITE_WEATHER_API=$services__weatherapi__1 |