diff --git a/ct/homepage.sh b/ct/homepage.sh
index 43fb247a7..d2f913a2d 100644
--- a/ct/homepage.sh
+++ b/ct/homepage.sh
@@ -52,7 +52,9 @@ function update_script() {
     cd /opt/homepage
     npx update-browserslist-db@latest
     pnpm install
-    NEXT_PUBLIC_VERSION=v$RELEASE NEXT_PUBLIC_REVISION='source' pnpm build
+    export NEXT_PUBLIC_VERSION=v$RELEASE
+    export NEXT_PUBLIC_REVISION='source' 
+    pnpm build
     systemctl start homepage
     echo "${RELEASE}" >/opt/${APP}_version.txt
     msg_ok "Updated Homepage to v${RELEASE}"