File tree Expand file tree Collapse file tree
application-templates/webapp/frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import Version from './components/Version';
33
44
55const Main = ( ) => (
6- < >
7- < img src = "/logo.png" width = "800" />
8- < h1 > __APP_NAME__ React application is working!</ h1 >
9- < Version />
10- < RestTest />
11- < p > See api documentation < a href = "/api/ui/" > here</ a > </ p >
12- </ >
13- )
6+ < >
7+ < img src = "/logo.png" width = "800" />
8+ < h1 > __APP_NAME__ React application is working!</ h1 >
9+ < Version />
10+ < RestTest />
11+ < p > See api documentation < a href = "/api/ui/" > here</ a > </ p >
12+ </ >
13+ )
1414
1515
1616export default Main ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export default defineConfig(({ mode }) => {
1010 const env = loadEnv ( mode , process . cwd ( ) , '' )
1111
1212 const theDomain = env && env . DOMAIN ? env . DOMAIN : 'localhost:5000' ;
13-
13+
1414 console . log ( 'Dev server address: ' , theDomain ) ;
1515
1616 const proxyTarget = theDomain ;
@@ -22,21 +22,23 @@ export default defineConfig(({ mode }) => {
2222
2323
2424 return {
25- plugins : [ react ( ) ] ,
26- server : {
27- port : 9000 ,
28- proxy : {
29- '/api/' : {
30- target : replaceHost ( proxyTarget , 'samples' ) ,
31- secure : false ,
32- changeOrigin : true ,
33- } ,
34- '/proxy/common/api' : {
35- target : replaceHost ( proxyTarget , 'common' ) ,
36- secure : false ,
37- changeOrigin : true ,
38- rewrite : ( path ) => path . replace ( / ^ \/ p r o x y \/ c o m m o n \/ a p i / , '/api' )
25+ plugins : [ react ( ) ] ,
26+ server : {
27+ port : 9000 ,
28+ proxy : {
29+ '/api/' : {
30+ target : replaceHost ( proxyTarget , 'samples' ) ,
31+ secure : false ,
32+ changeOrigin : true ,
33+ } ,
34+ '/proxy/common/api' : {
35+ target : replaceHost ( proxyTarget , 'common' ) ,
36+ secure : false ,
37+ changeOrigin : true ,
38+ rewrite : ( path ) => path . replace ( / ^ \/ p r o x y \/ c o m m o n \/ a p i / , '/api' )
39+ }
3940 }
41+ }
4042 }
41- } } }
43+ }
4244)
You can’t perform that action at this time.
0 commit comments