mirror of
				https://github.com/Telecominfraproject/wlan-cloud-ui.git
				synced 2025-11-04 04:37:53 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			179 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			179 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/sh -eu
 | 
						|
if [ -z "${API:-}" ]; then
 | 
						|
    API_URL_JSON=undefined
 | 
						|
else
 | 
						|
    API_URL_JSON=$(jq -n --arg api "$API" '$api')
 | 
						|
fi
 | 
						|
 
 | 
						|
cat <<EOF
 | 
						|
window.REACT_APP_API = $API_URL_JSON;
 | 
						|
EOF |