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."