This commit is contained in:
Trance-0
2025-11-19 14:44:05 -06:00
parent 1fac4c46fa
commit aca1e0698b
11 changed files with 17 additions and 482 deletions

11
distribute/prebuild.sh Normal file
View File

@@ -0,0 +1,11 @@
# This is pre-build script that cleans up resources and compiles for selected pages, then finally you may combine those subdirectories into one via nginx.
echo 'Currently compiling pages: $KEEP_PAGES'
# Rewrite base _meta.js and next.config.js for export pages
echo 'Rewrite base _meta.js and keeping $KEEP_PAGES'
sed 's/(\w+\d+.):(\s*{\n.+\n.+)\n.+\n.+\n.+(\n.+},)/$1_link:$2\n href:'/$1'$3/g' -i ../content/_meta.js
echo 'First step replaced file:'
cat ../content/_meta.js