Last active
March 14, 2021 13:48
-
-
Save viktorfa/4d0d3e1d9f6f317d7037bcead27f28c0 to your computer and use it in GitHub Desktop.
Post build script for Strapi Serverless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# scripts/post-build.sh | |
#!/bin/bash | |
echo "post-build.sh – moving assets of frontend build to dev/ folder." | |
mkdir $PWD/build/dev | |
find $PWD/build/ -type f -print0 | xargs -0 mv -t $PWD/build/dev | |
mv $PWD/build/dev/index.html $PWD/build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
shouldn't it be
mv $PWD/build/index.html $PWD/build/dev
in line 9?