Skip to content

Commit

Permalink
fix: Add check for index.xml generation after forester build
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Nov 16, 2024
1 parent 544977c commit 36f27a9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ function build {
echo "⭐ Rebuilding forest"
just forest
show_result
# Check if index.xml was generated
if [ ! -f "output/index.xml" ]; then
echo -e "\033[0;31mError: index.xml not found in output directory. Forest build likely failed.\033[0m"
exit 1
fi
# echo "⭐ Copying assets"
copy_extra_assets
# build_ssr
Expand Down

0 comments on commit 36f27a9

Please sign in to comment.