Update start.sh
Browse files
start.sh
CHANGED
|
@@ -61,9 +61,12 @@ export SERVICE_API_URL=${SERVICE_API_URL:-"https://pommsn-dify.hf.space"}
|
|
| 61 |
# Server-side access to URLs (just in case)
|
| 62 |
export NEXT_PUBLIC_API_URL=${CONSOLE_API_URL}
|
| 63 |
|
| 64 |
-
# Fix for standalone mode
|
| 65 |
export NEXT_SHARP_PATH=/app/web/node_modules/sharp
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
echo "📊 CONSOLE_API_URL=${CONSOLE_API_URL}"
|
| 69 |
echo "📊 NODE_ENV=${NODE_ENV}"
|
|
|
|
| 61 |
# Server-side access to URLs (just in case)
|
| 62 |
export NEXT_PUBLIC_API_URL=${CONSOLE_API_URL}
|
| 63 |
|
| 64 |
+
# Fix for standalone mode (Required for 1.10.x and 1.11.x)
|
| 65 |
export NEXT_SHARP_PATH=/app/web/node_modules/sharp
|
| 66 |
+
export __NEXT_PRIVATE_STANDALONE_CONFIG=true
|
| 67 |
+
|
| 68 |
+
# Ensure internal API URL is set for SSR
|
| 69 |
+
export NEXT_PUBLIC_API_URL=${CONSOLE_API_URL}
|
| 70 |
|
| 71 |
echo "📊 CONSOLE_API_URL=${CONSOLE_API_URL}"
|
| 72 |
echo "📊 NODE_ENV=${NODE_ENV}"
|