Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324#!/usr/bin/env bash# build the ball pit, assemble it under /top, and deploy to Cloudflare Pages.# layout served: bisk.social/ -> placeholder/index.html# bisk.social/top -> the app (vite build, base ./)# the snapshot is fetched cross-origin from R2 (CORS-allowed for bisk.social).## needs: CLOUDFLARE_API_TOKEN (Pages edit) + CLOUDFLARE_ACCOUNT_IDset -euo pipefailcd "$(dirname "$0")/.."
bun run build
rm -rf deploymkdir -p deploy/topcp -R dist/. deploy/top/cp placeholder/index.html deploy/index.html# Pages Functions (/og-image card, /top/market proxy, /top/recommend);# wrangler bundles node deps. drop test files — they aren't routes and pull in vitest.cp -R functions deploy/functionsrm -f deploy/functions/*.test.js
bunx wrangler@latest pages deploy deploy \ --project-name=bisk --branch=main --commit-dirty=true