File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- var builder = DistributedApplication . CreateBuilder ( args ) ;
1+ var builder = DistributedApplication . CreateBuilder ( args ) ;
22
3- var apiService = builder . AddProject < Projects . BikeTracking_Api > ( "api" )
3+ var apiService = builder
4+ . AddProject < Projects . BikeTracking_Api > ( "api" )
45 . WithHttpHealthCheck ( "/health" )
56 . WithExternalHttpEndpoints ( ) ;
67
7- var webFrontend = builder . AddViteApp ( "frontend" , "../BikeTracking.Frontend" )
8+ // AddViteApp was not working with Aurelia
9+ var webFrontend = builder
10+ . AddNodeApp ( "frontend" , "../BikeTracking.Frontend" , "node_modules/vite/bin/vite.js" )
11+ . WithNpm ( )
12+ . WithRunScript ( "preview" )
13+ . WithHttpEndpoint ( port : 5173 , env : "PORT" )
814 . WithReference ( apiService )
915 . WaitFor ( apiService ) ;
1016
Original file line number Diff line number Diff line change 3232 "pretest" : " npm run lint" ,
3333 "dev" : " vite" ,
3434 "start" : " vite" ,
35- "build" : " vite build"
35+ "build" : " vite build" ,
36+ "preview" : " vite preview --host 0.0.0.0 --strictPort --port 4173"
3637 },
3738 "type" : " module"
3839}
You can’t perform that action at this time.
0 commit comments