From 93235ea5795c85eadd2f061b43369311aae38e91 Mon Sep 17 00:00:00 2001 From: pxi Date: Tue, 3 Dec 2024 02:21:43 +0100 Subject: [PATCH] =?UTF-8?q?=EF=BC=BC`=E2=80=A2=CC=80=E7=9B=8A=E2=80=A2?= =?UTF-8?q?=CC=81=C2=B4=EF=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/deploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/deploy.sh b/bin/deploy.sh index c55bd44..b765c88 100755 --- a/bin/deploy.sh +++ b/bin/deploy.sh @@ -3,6 +3,9 @@ # Get the full path to the dist directory APP_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +# The name of your Cloudflare project +CF_PROJECT="wakale-casa" + # Function to check if a command exists command_exists() { command -v "$1" > /dev/null 2>&1 @@ -66,10 +69,9 @@ if [ -f "$APP_PATH/packages.json" ]; then npm run build fi - # Deploy to Cloudflare Pages using the full path to dist echo "Deploying $APP_PATH/www" -wrangler pages deploy "$APP_PATH/www" +wrangler pages deploy --project-name "$CF_PROJECT" "$APP_PATH/www" echo "DONE."