Add .next symlink for standalone Next.js

This commit is contained in:
Your Name committed 2026-06-03 09:13:47 +07:00
1 parent e9ec4fcbb9
commit 7b857b4eda
1 file changed
+4 -1
+4 -1
View File
@@ -126,7 +126,10 @@ echo ">>> Fixing Permissions..."
chown -R ti:ti $TARGET_BACKEND $TARGET_SSR chown -R ti:ti $TARGET_BACKEND $TARGET_SSR
# H. PM2 Management - SSR Next.js # H. PM2 Management - SSR Next.js
cd $TARGET_SSR/apps/ssr cd $TARGET_SSR
echo ">>> Creating symlink for .next..."
ln -sf apps/ssr/.next .next
cd apps/ssr
echo ">>> Managing PM2 Process: $PM2_NAME_SSR..." echo ">>> Managing PM2 Process: $PM2_NAME_SSR..."
$PM2 delete $PM2_NAME_SSR 2>/dev/null || true $PM2 delete $PM2_NAME_SSR 2>/dev/null || true
PORT=$SSR_PORT $PM2 start $BUN --name $PM2_NAME_SSR \ PORT=$SSR_PORT $PM2 start $BUN --name $PM2_NAME_SSR \