From a0c2a72cadeb6891ec9ce75735ec980a004b258d Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Mon, 20 Jun 2022 22:59:04 -0400 Subject: [PATCH] Don't let netlify cache the build SHA (not sure if this works) --- build-fakeyou.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build-fakeyou.sh b/build-fakeyou.sh index 3f59ea1687..b38eb27d6d 100755 --- a/build-fakeyou.sh +++ b/build-fakeyou.sh @@ -3,12 +3,6 @@ set -euxo pipefail -# --ignore-engines: https://stackoverflow.com/a/59615348 -yarn build-fakeyou --verbose --ignore-optional --ignore-engines - -mkdir fakeyou -mv packages/fakeyou/build/ fakeyou/build/ - # Add the GIT SHA to the build # COMMIT_REF is defined by Netlify to be the commit SHA # We want a short 8 character reference. @@ -18,6 +12,12 @@ find . -type f -exec sed -i "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + # The above command won't work with Mac's version of find/sed. The following is a Mac-friendly version: # find . -type f -exec sed -i '' -e "s/CURRENT_STORYTELLER_VERSION/${SHORT_SHA}/g" {} + +# --ignore-engines: https://stackoverflow.com/a/59615348 +yarn build-fakeyou --verbose --ignore-optional --ignore-engines + +mkdir fakeyou +mv packages/fakeyou/build/ fakeyou/build/ + echo "Copying redirects configuration to Netlify build dir..." cp _redirects fakeyou/build/