From 2aa898da0014919e383accf7b6da50f3cd2d0060 Mon Sep 17 00:00:00 2001 From: Henry Date: Wed, 18 Jun 2025 22:57:12 +0100 Subject: [PATCH] feat: enable starting in standalone mode --- apps/web/entrypoint.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/apps/web/entrypoint.sh b/apps/web/entrypoint.sh index 85557067..d736852f 100644 --- a/apps/web/entrypoint.sh +++ b/apps/web/entrypoint.sh @@ -12,5 +12,12 @@ if [ $? -ne 0 ]; then fi echo "\nStarting Next.js application..." -# Start the Next.js application from the web app's directory -exec node .next/standalone/apps/web/server.js \ No newline at end of file + +# Check if we should use standalone mode +if [ "$NEXT_PUBLIC_USE_STANDALONE_OUTPUT" = "true" ]; then + echo "Starting in standalone mode..." + exec node .next/standalone/apps/web/server.js +else + echo "Starting in standard mode..." + exec pnpm start +fi \ No newline at end of file