2023-08-18 10:42:44 +08:00
|
|
|
#!/bin/sh
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
|
|
|
export NEXT_PUBLIC_EDITION=${EDITION}
|
2023-07-14 11:19:26 +08:00
|
|
|
|
|
|
|
if [[ -z "$CONSOLE_URL" ]]; then
|
|
|
|
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_API_URL}/console/api
|
|
|
|
else
|
|
|
|
export NEXT_PUBLIC_API_PREFIX=${CONSOLE_URL}/console/api
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z "$APP_URL" ]]; then
|
|
|
|
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_API_URL}/api
|
|
|
|
else
|
|
|
|
export NEXT_PUBLIC_PUBLIC_API_PREFIX=${APP_URL}/api
|
|
|
|
fi
|
|
|
|
|
2023-06-13 16:04:54 +08:00
|
|
|
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
|
2023-10-16 15:26:25 +08:00
|
|
|
export NEXT_PUBLIC_SITE_ABOUT=${SITE_ABOUT}
|
2023-05-15 08:51:32 +08:00
|
|
|
|
2023-08-17 10:25:11 +08:00
|
|
|
node ./server.js
|