Skip to content

Instantly share code, notes, and snippets.

@viktorfa

viktorfa/post-build.sh

Last active Aug 13, 2020
Embed
What would you like to do?
Post build script for Strapi Serverless
# 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
You can’t perform that action at this time.