#!/bin/bash

echo "===== Building LibreChat for Production ====="
echo ""
echo "Building frontend and backend..."

cd /opt/front-dev

# Install dependencies if needed
echo "Installing dependencies..."
npm ci

# Build the project
echo "Building project..."
npm run build

echo ""
echo "Build complete!"
echo "To start production server, run: npm run start"
