Skip to content

Instantly share code, notes, and snippets.

@BennyThink
Created August 17, 2024 16:22
Show Gist options
  • Select an option

  • Save BennyThink/065ec17060b74247dce205f421ec6149 to your computer and use it in GitHub Desktop.

Select an option

Save BennyThink/065ec17060b74247dce205f421ec6149 to your computer and use it in GitHub Desktop.
build telegram-tt on Cloudflare Pages
#!/bin/bash
cat << EOF >> .env
NODE_ENV=production
TELEGRAM_API_ID=$TELEGRAM_API_ID
TELEGRAM_API_HASH=$TELEGRAM_API_HASH
BASE_URL=$BASE_URL
EOF
npm run build:production
cd dist
rm -f *.map build-stats.json statoscope-report.html
rm -rf img-apple*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment