2022-10-26 12:57:48 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_API_URL env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_HTTP_PROXY"
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_SITE_NAME env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_SITE_NAME"
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_SITE_TITLE env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_SITE_TITLE"
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_SITE_DESCRIPTION env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_SITE_DESCRIPTION"
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_SITE_COLOR env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_SITE_COLOR"
|
2022-10-26 14:20:49 +00:00
|
|
|
echo "Checking that NEXT_PUBLIC_SITE_URL env var"
|
2022-10-26 12:57:48 +00:00
|
|
|
test -n "$NEXT_PUBLIC_SITE_URL"
|
|
|
|
|
2022-10-26 14:16:29 +00:00
|
|
|
files = $(find /app/.next \( -type d -name .git -prune \) -o -type f -print0 | xargs -0)
|
2022-10-26 14:07:33 +00:00
|
|
|
|
2022-10-26 14:26:10 +00:00
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_HTTP_PROXY#$NEXT_PUBLIC_HTTP_PROXY#g")
|
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_SITE_NAME#$NEXT_PUBLIC_SITE_NAME#g")
|
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_SITE_TITLE#$NEXT_PUBLIC_SITE_TITLE#g")
|
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_SITE_DESCRIPTION#$NEXT_PUBLIC_SITE_DESCRIPTION#g")
|
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_SITE_COLOR#$NEXT_PUBLIC_SITE_COLOR#g")
|
|
|
|
$files $(sed -i "s#APP_NEXT_PUBLIC_SITE_URL#$NEXT_NEXT_PUBLIC_SITE_URL#g")
|
2022-10-26 12:57:48 +00:00
|
|
|
|
|
|
|
echo "Starting NextJS"
|
|
|
|
exec "$@"
|