Something went wrong. Try again.
personal activity index (bluesky, leaflet, substack) pai.desertthunder.dev
rss bluesky
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758# Cloudflare Workers configuration for Personal Activity Index# Copy this file to wrangler.toml and update with your values
name = "personal-activity-index"main = "build/index.js"compatibility_date = "2025-01-15"
# D1 Database Binding# Create your D1 database with:# wrangler d1 create personal-activity-db# Then replace {DATABASE_ID} below with the ID from the output[[d1_databases]]binding = "DB"database_name = "personal-activity-db"database_id = "{DATABASE_ID}"
# Cron Triggers for scheduled syncs# Runs every hour at minute 0[triggers]crons = ["0 * * * *"]
# Environment variables for source configuration# Configure the sources you want to sync[vars]# Substack RSS feed URLSUBSTACK_URL = "https://patternmatched.substack.com"
# Bluesky handleBLUESKY_HANDLE = "desertthunder.dev"
# Leaflet publications (comma-separated id:url pairs)# Format: "id1:https://pub1.leaflet.pub,id2:https://pub2.leaflet.pub"LEAFLET_URLS = "desertthunder:https://desertthunder.leaflet.pub,stormlightlabs:https://stormlightlabs.leaflet.pub"
# BearBlog publications (comma-separated id:url pairs)# Format: "id1:https://blog1.bearblog.dev,id2:https://blog2.bearblog.dev"BEARBLOG_URLS = "desertthunder:https://desertthunder.bearblog.dev"
# CORS configuration (optional)# Comma-separated list of allowed origins for cross-origin requests# Supports exact match and same-root-domain matching# Example: "https://desertthunder.dev" allows pai.desertthunder.dev, api.desertthunder.dev, etc.CORS_ALLOWED_ORIGINS = "https://desertthunder.dev,http://localhost:4321"
# Optional development key for local testing# When set, requests with X-Local-Dev-Key header matching this value are allowedCORS_DEV_KEY = "your-secret-dev-key-change-this"
# Optional: Logging level# LOG_LEVEL = "info"
[observability][observability.logs]enabled = truehead_sampling_rate = 1invocation_logs = truepersist = true