File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Exceptionless.Web/ClientApp Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 16
16
. WithReference ( elastic )
17
17
. WithLaunchProfile ( "Exceptionless API" ) ;
18
18
19
+ builder . AddNpmApp ( "Web" , "../../src/Exceptionless.Web/ClientApp" , "dev" )
20
+ . WithReference ( api )
21
+ . WithEndpoint ( containerPort : 5173 , scheme : "http" , env : "PORT" ) ;
22
+
19
23
builder . Build ( ) . Run ( ) ;
Original file line number Diff line number Diff line change @@ -19,7 +19,8 @@ export default defineConfig({
19
19
include : [ 'src/**/*.{test,spec}.{js,ts}' ]
20
20
} ,
21
21
server : {
22
- port : 5173 ,
22
+ host : true ,
23
+ port : parseInt ( process . env . PORT ?? '5173' ) ,
23
24
strictPort : true ,
24
25
hmr : aspNetConfig . hmr ,
25
26
proxy : {
@@ -77,7 +78,7 @@ function getAspNetConfig() {
77
78
78
79
// get current aspnetcore port / url
79
80
const aspnetHttpsPort = process . env . ASPNETCORE_HTTPS_PORT ;
80
- const aspnetUrls = process . env . ASPNETCORE_URLS ;
81
+ const aspnetUrls = process . env . ASPNETCORE_URLS ?? process . env . services__Api__0 ;
81
82
const serverPort = 5173 ;
82
83
83
84
const hmrRemoteHost = codespaceName ? `${ codespaceName } -${ serverPort } .${ codespaceDomain } ` : 'localhost' ;
You can’t perform that action at this time.
0 commit comments