Update start.sh
Browse files
start.sh
CHANGED
|
@@ -35,6 +35,12 @@ export NEXT_PUBLIC_PUBLIC_API_PREFIX=/api
|
|
| 35 |
export NEXT_PUBLIC_SENTRY_DSN=
|
| 36 |
export NEXT_TELEMETRY_DISABLED=1
|
| 37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
# Console URLs - must be set!
|
| 39 |
export CONSOLE_API_URL=${CONSOLE_API_URL:-"https://pommsn-dify.hf.space"}
|
| 40 |
export CONSOLE_WEB_URL=${CONSOLE_WEB_URL:-"https://pommsn-dify.hf.space"}
|
|
@@ -42,9 +48,8 @@ export APP_API_URL=${APP_API_URL:-"https://pommsn-dify.hf.space"}
|
|
| 42 |
export APP_WEB_URL=${APP_WEB_URL:-"https://pommsn-dify.hf.space"}
|
| 43 |
export SERVICE_API_URL=${SERVICE_API_URL:-"https://pommsn-dify.hf.space"}
|
| 44 |
|
| 45 |
-
#
|
| 46 |
-
export
|
| 47 |
-
export NEXT_PUBLIC_DEPLOY_ENV=${NEXT_PUBLIC_DEPLOY_ENV:-"PRODUCTION"}
|
| 48 |
|
| 49 |
# Fix for standalone mode
|
| 50 |
export NEXT_SHARP_PATH=/app/web/node_modules/sharp
|
|
|
|
| 35 |
export NEXT_PUBLIC_SENTRY_DSN=
|
| 36 |
export NEXT_TELEMETRY_DISABLED=1
|
| 37 |
|
| 38 |
+
# Edition and deploy env
|
| 39 |
+
export NEXT_PUBLIC_EDITION=${NEXT_PUBLIC_EDITION:-"SELF_HOSTED"}
|
| 40 |
+
export NEXT_PUBLIC_DEPLOY_ENV=${NEXT_PUBLIC_DEPLOY_ENV:-"PRODUCTION"}
|
| 41 |
+
export EDITION=${NEXT_PUBLIC_EDITION}
|
| 42 |
+
export DEPLOY_ENV=${NEXT_PUBLIC_DEPLOY_ENV}
|
| 43 |
+
|
| 44 |
# Console URLs - must be set!
|
| 45 |
export CONSOLE_API_URL=${CONSOLE_API_URL:-"https://pommsn-dify.hf.space"}
|
| 46 |
export CONSOLE_WEB_URL=${CONSOLE_WEB_URL:-"https://pommsn-dify.hf.space"}
|
|
|
|
| 48 |
export APP_WEB_URL=${APP_WEB_URL:-"https://pommsn-dify.hf.space"}
|
| 49 |
export SERVICE_API_URL=${SERVICE_API_URL:-"https://pommsn-dify.hf.space"}
|
| 50 |
|
| 51 |
+
# Server-side access to URLs (just in case)
|
| 52 |
+
export NEXT_PUBLIC_API_URL=${CONSOLE_API_URL}
|
|
|
|
| 53 |
|
| 54 |
# Fix for standalone mode
|
| 55 |
export NEXT_SHARP_PATH=/app/web/node_modules/sharp
|