1
This commit is contained in:
10
set_proxy.sh
Executable file
10
set_proxy.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#! /bin/bash
|
||||
# Edit package.json to set proxy
|
||||
backend_url=$BACKEND_URL
|
||||
echo "Setting proxy to $backend_url"
|
||||
# Load package.json file and edit proxy
|
||||
packagejson=$(cat package.json)
|
||||
|
||||
packagejson=$(echo "$packagejson" | jq ".proxy = \"$backend_url\"")
|
||||
|
||||
echo "$packagejson" > package.json
|
||||
Reference in New Issue
Block a user