mirror of
https://github.com/MeshCore-Beacon/beacon-web.git
synced 2026-09-04 20:53:44 +00:00
13 lines
263 B
Bash
13 lines
263 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
API_BASE="${VITE_API_BASE:-http://localhost:8080/api/v1}"
|
|
WS_URL="${VITE_WS_URL:-ws://localhost:8080/ws}"
|
|
|
|
find /srv -name '*.js' -exec sed -i \
|
|
-e "s|__VITE_API_BASE__|${API_BASE}|g" \
|
|
-e "s|__VITE_WS_URL__|${WS_URL}|g" \
|
|
{} +
|
|
|
|
exec "$@"
|