Images (19 files): - Downloaded all wp-content images referenced in source to public/ - Added [assets] binding in wrangler.toml — Cloudflare serves them as static files directly (CDN-cached, bypasses Worker), with the Worker proxy as fallback for any new uploads not yet saved Announcements: - Homepage now fetches all active non-expired announcements (up to 10) - announcementBanner rewritten as rotating carousel: auto-advances every 5s, prev/next arrows, dot indicators, per-announcement dismiss stored in localStorage — dismissed ones skip in the rotation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
925 B
TOML
36 lines
925 B
TOML
name = "careersgateway"
|
|
main = "src/index.js"
|
|
compatibility_date = "2024-11-01"
|
|
compatibility_flags = ["nodejs_compat"]
|
|
|
|
[assets]
|
|
directory = "./public"
|
|
binding = "ASSETS"
|
|
|
|
[triggers]
|
|
# Run daily at 9am AEST (23:00 UTC previous day)
|
|
crons = ["0 23 * * *"]
|
|
|
|
[[custom_domains]]
|
|
pattern = "careers.bored.investments"
|
|
|
|
[[custom_domains]]
|
|
pattern = "careersgateway.com.au"
|
|
|
|
[[custom_domains]]
|
|
pattern = "www.careersgateway.com.au"
|
|
|
|
[[d1_databases]]
|
|
binding = "DB"
|
|
database_name = "careersgateway-db"
|
|
database_id = "d898aeb4-5568-48d5-ba20-4244e467b5de"
|
|
|
|
[[kv_namespaces]]
|
|
binding = "SESSIONS"
|
|
id = "5b40ceec3c6446409351805028e63453"
|
|
|
|
[vars]
|
|
SITE_NAME = "Careers Gateway"
|
|
CONTACT_EMAIL = "Cgabijendra@gmail.com"
|
|
KONPARE_KEY = "ViL_0iMMCdHrXNoEQKFm4P5092ISFcYzEyLmf5MFBKds7Hw5BmORaXu3oGsMB5Lk"
|
|
GOOGLE_SHEET_WEBHOOK = "https://script.google.com/macros/s/AKfycbxthk7AYT1Qaoh55-KlbUPmCTVAysH3O5Mv5GQ2_QV2Amh9j0eLvBBbRRCdFnM9Axoo/exec"
|