Skip to content

Commit 3e9b84d

Browse files
feat: changes to implement one click deployment
feat: changes to implement one click deployment
1 parent 4313d8d commit 3e9b84d

File tree

3 files changed

+3
-314
lines changed

3 files changed

+3
-314
lines changed

apps/OpenSign/src/components/pdf/EmbedTab.js

Lines changed: 0 additions & 305 deletions
This file was deleted.

apps/OpenSign/src/constant/appinfo.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import logo from "../assets/images/logo.png";
22

33
export 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
}
119
export const appInfo = {

apps/OpenSignServer/Utils.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ dotenv.config();
66

77
export const cloudServerUrl = 'http://localhost:8080/app';
88
export 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

1410
export const color = [
1511
'#93a3db',

0 commit comments

Comments
 (0)