Created
August 17, 2024 16:22
-
-
Save BennyThink/065ec17060b74247dce205f421ec6149 to your computer and use it in GitHub Desktop.
build telegram-tt on Cloudflare Pages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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