@echo off
echo ========================================
echo Antalya Restaurant - Deploy Script
echo ========================================
echo.

echo Step 1: Building site...
call npm run build

if %ERRORLEVEL% NEQ 0 (
    echo Build failed! Please fix errors and try again.
    pause
    exit /b %ERRORLEVEL%
)

echo.
echo ========================================
echo Build successful!
echo ========================================
echo.

echo IMPORTANT: Upload ALL contents from the 'out' folder to your server.
echo.
echo Make sure to upload:
echo   - All HTML files and folders
echo   - The .htaccess file (Apache servers)
echo   - The web.config file (IIS servers)
echo   - All _next folder contents
echo   - All images folder
echo.
echo Server upload location: public_html or www folder
echo.
echo After upload, test these URLs:
echo   https://antalya.metatronnest.com/
echo   https://antalya.metatronnest.com/about-antalya-restaurant/
echo   https://antalya.metatronnest.com/antalya-turkish-food-blog/
echo.

pause
