backups
This commit is contained in:
11
distribute/prebuild.sh
Normal file
11
distribute/prebuild.sh
Normal 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
|
||||
Reference in New Issue
Block a user