aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/build6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/build b/scripts/build
index 8491e0f..b9c5dd0 100755
--- a/scripts/build
+++ b/scripts/build
@@ -15,6 +15,12 @@ npx next build
echo "-> exporting static files..."
npx next export
+echo "-> cleaning $web_root..."
+rm -rf $web_root/*
+
echo "-> moving static files to $web_root..."
cp -rv out/* $web_root
+
+echo "-> cleaning out directory..."
rm -rfv out
+