Skip to content

Commit 867c46e

Browse files
committed
force regenerating api endpoint
1 parent abbe0ac commit 867c46e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

frontend/50-set-api-endpoint.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/bin/sh
22

3-
4-
if [ ! -f /usr/share/nginx/html/assets/config.json ] && [ ! -z "${API_ENDPOINT}" ]; then
5-
echo "{\"API_ENDPOINT\": ${API_ENDPOINT}}" > /usr/share/nginx/html/assets/config.json
3+
if [ ! -z "${API_ENDPOINT}" ]; then
4+
echo "{\"API_ENDPOINT\": ${API_ENDPOINT}}" >/usr/share/nginx/html/assets/config.json
65
fi

0 commit comments

Comments
 (0)