Skip to content

Commit

Permalink
refactor: remove unnessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
blacklee123 committed Aug 13, 2024
1 parent 76da2d4 commit 838eb39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions replace.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
nohup google-chrome --remote-debugging-address=0.0.0.0 --remote-debugging-port=9222 --no-sandbox --disable-dev-shm-usage --headless --disable-gpu >/dev/null 2>&1 &
sed -i "s/SONIC_SERVER_HOST/${SONIC_SERVER_HOST}/g" /usr/share/nginx/html/assets/*.js
sed -i "s/SONIC_SERVER_PORT/${SONIC_SERVER_PORT}/g" /usr/share/nginx/html/assets/*.js
/usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
2 changes: 1 addition & 1 deletion src/http/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (process.env.NODE_ENV === 'development') {
baseURL = 'http://localhost:3000/server/api';
}
if (process.env.NODE_ENV === 'production') {
baseURL = 'http://SONIC_SERVER_HOST:SONIC_SERVER_PORT/server/api';
baseURL = '/server/api';
}
const $http = axios.create();
baseURL = baseURL.replace(':80/', '/');
Expand Down

0 comments on commit 838eb39

Please sign in to comment.