mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 11:18:19 +08:00
22 lines
477 B
Bash
22 lines
477 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
export NEXT_PUBLIC_DEPLOY_ENV=${DEPLOY_ENV}
|
|
export NEXT_PUBLIC_EDITION=${EDITION}
|
|
|
|
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
|
|
|
|
export NEXT_PUBLIC_SENTRY_DSN=${SENTRY_DSN}
|
|
|
|
node ./server.js |