\`•̀益•́´/

main
pxi 2024-12-03 02:21:43 +01:00
parent 68af176863
commit 93235ea579
1 changed files with 4 additions and 2 deletions

View File

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