File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{$HOST_URL} {
22 reverse_proxy client:3000
3- handle_path /app /* {
3+ handle_path /api /* {
44 reverse_proxy server:8080
5- rewrite * /app {uri}
5+ rewrite * {uri}
66 }
77}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import logo from "../assets/images/logo.png" ;
22
33export function serverUrl_fn ( ) {
4- let baseUrl ;
5- baseUrl = process . env . REACT_APP_SERVERURL
6- ? process . env . REACT_APP_SERVERURL
7- : window . location . origin + "/app" ;
8-
4+ let baseUrl = process . env . REACT_APP_SERVERURL
5+ ? process . env . REACT_APP_SERVERURL
6+ : window . location . origin + "/api/app" ;
97 return baseUrl ;
108}
119export const appInfo = {
Original file line number Diff line number Diff line change @@ -6,10 +6,6 @@ dotenv.config();
66
77export const cloudServerUrl = 'http://localhost:8080/app' ;
88export const appName = 'OpenSign™' ;
9- export function customAPIurl ( ) {
10- const url = new URL ( cloudServerUrl ) ;
11- return url . pathname === '/api/app' ? url . origin + '/api' : url . origin ;
12- }
139
1410export const color = [
1511 '#93a3db' ,
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ services:
1111 env_file : .env.prod
1212 environment :
1313 - NODE_ENV=production
14- - SERVER_URL=${HOST_URL:-https://localhost:3001}/app
14+ - SERVER_URL=${HOST_URL:-https://localhost:3001}/api/app
15+ - PUBLIC_URL=${HOST_URL:-https://localhost:3001}
1516 networks :
1617 - app-network
1718 mongo :
You can’t perform that action at this time.
0 commit comments