Pommsn commited on
Commit
e985de5
Β·
verified Β·
1 Parent(s): f6a8cd2

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +5 -2
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
- # export __NEXT_PRIVATE_STANDALONE_CONFIG=true <-- REMOVED due to TypeError
 
 
 
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}"