mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-24 02:05:11 +08:00
11 lines
285 B
Bash
Executable File
11 lines
285 B
Bash
Executable File
#! /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
|