Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Handle the single output directory by creating a symlink

Manav Rathi67624839f3c9
diff --git a/scripts/deploy.sh b/scripts/deploy.sh
index f39c5b204d..15309e9a35 100644
--- a/scripts/deploy.sh
+++ b/scripts/deploy.sh
@@ -5,12 +5,17 @@
# CF_PAGES_BRANCH environment variable.
#
# Ref: https://developers.cloudflare.com/pages/how-to/build-commands-branches/
+#
+# The CF Pages configuration is set to use `out/` as the build output directory,
+# so once we're done building we symlink `out/` to the app specific output.
set -o errexit
if test "$CF_PAGES_BRANCH" == "auth-release"
then
yarn export:auth
+ ln -sf apps/auth/out
else
yarn export:photos
+ ln -sf apps/photos/out
fi