31 lines
620 B
Batchfile
31 lines
620 B
Batchfile
|
|
@echo off
|
||
|
|
echo 🔨 Building POZO App with SEO...
|
||
|
|
echo.
|
||
|
|
|
||
|
|
REM Clean previous build
|
||
|
|
if exist dist (
|
||
|
|
echo 🧹 Cleaning previous build...
|
||
|
|
rmdir /s /q dist
|
||
|
|
)
|
||
|
|
|
||
|
|
echo 📦 Building project...
|
||
|
|
npm run build
|
||
|
|
|
||
|
|
if errorlevel 1 (
|
||
|
|
echo ❌ Build failed!
|
||
|
|
pause
|
||
|
|
exit /b 1
|
||
|
|
)
|
||
|
|
|
||
|
|
echo 📋 Copying server files and setting up SEO...
|
||
|
|
node scripts/jsx-to-html-converter.js
|
||
|
|
|
||
|
|
if errorlevel 1 (
|
||
|
|
echo ⚠️ Warning: Server file copy had issues, but continuing...
|
||
|
|
)
|
||
|
|
|
||
|
|
echo ✅ Build completed successfully!
|
||
|
|
echo 📁 Files are ready in dist folder
|
||
|
|
echo.
|
||
|
|
echo 🚀 You can now run START-SERVER.bat to start the server
|
||
|
|
pause
|