ccbikai 2df9b66ed9 feat: enhance deployment and media handling
- Updated deployment configurations to disable Incremental Static Regeneration (ISR) and cache on demand pages for better performance control.
- Extended .gitignore to include deployment-specific directories, preventing unnecessary files from being tracked.
- Improved video handling in content by adding support for additional video types and enhancing video element attributes for better playback control.
- Refactored post retrieval logic to ensure channel information is correctly merged and SEO data is accurately assigned.
- Enhanced static file handling to include error handling and domain whitelisting for security and reliability.
2024-08-05 18:57:28 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 21:01:52 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00
2024-08-04 20:42:51 +08:00

BroadcastChannel

Turn your Telegram Channel into a MicroBlog.


English | 简体中文

Features

  • Turn your Telegram Channel into a MicroBlog
  • SEO friendly
  • 0 JS on the browser side
  • RSS and RSS JSON

🪧 Demo

BroadcastChannel supports deployment on serverless platforms like Cloudflare, Netlify, Vercel that support Node.js SSR, or on a VPS. For detailed tutorials, see Deploy your Astro site.

  1. Cloudflare
  2. Netlify
  3. Vercel

🧱 Tech Stack

🏗️ Deployment

  1. Fork this project to your GitHub
  2. Create a project on Cloudflare/Netlify/Vercel
  3. Select the BroadcastChannel project and the Astro framework
  4. Configure the environment variable CHANNEL with your channel name. This is the minimal configuration, for more configurations see the options below
  5. Save and deploy
  6. Bind a domain (optional).
  7. Update code, refer to the official GitHub documentation Syncing a fork branch from the web UI.

⚒️ Configuration

## Telegram channel name, required
CHANNEL=Broadcast_Channel_Blog

## Language and timezone settings, language options see [dayjs](https://github.com/iamkun/dayjs/tree/dev/src/locale)
LOCALE=en
TIMEZONE="America/New_York"

## Social media usernames
TELEGRAM=ccbikai
TWITTER=ccbikai
GITHUB=ccbikai

## The following two social media need to be URLs
DISCORD=https://DISCORD.com
PODCAST=https://PODCAST.com

## Header and footer code injection, supports HTML
FOOTER_INJECT=FOOTER_INJECT
HEADER_INJECT=HEADER_INJECT

## SEO configuration options, can prevent search engines from indexing content
NO_FOLLOW=false
NO_INDEX=false

## Sentry configuration options, collect server-side errors
SENTRY_AUTH_TOKEN=SENTRY_AUTH_TOKEN
SENTRY_DSN=SENTRY_DSN
SENTRY_PROJECT=SENTRY_PROJECT

## Telegram host name and static resource proxy, not recommended to modify
HOST="telegram.dog"
STATIC_PROXY=""

Sponsor

  1. Follow me on Telegram
  2. Follow me on 𝕏
  3. Sponsor me on GitHub
Description
Turn your Telegram Channel into a MicroBlog.
Readme AGPL-3.0 915 KiB
Languages
TypeScript 34.3%
Astro 26.2%
XSLT 19.4%
CSS 17%
JavaScript 2.5%
Other 0.6%