···11+# Baked into the build by `vite build` (mode=production).
22+# Point the TuneIn + ICY media proxies at the deployed API (CORS is open there).
33+VITE_TUNEIN_PROXY=https://api.atradio.fm/api/tunein
44+VITE_ICY_PROXY=https://api.atradio.fm/api/icy
···11+# Reverse proxy for the atradio.fm API. Caddy provisions TLS automatically.
22+# Point DNS A/AAAA for api.atradio.fm at this host, then:
33+# sudo cp deploy/Caddyfile /etc/caddy/Caddyfile (or `import` it)
44+# sudo systemctl reload caddy
55+api.atradio.fm {
66+ reverse_proxy 127.0.0.1:8080
77+}
+1
tools/console/bb.edn
···1313 web:dev {:doc "Run the web app (Vite)" :task (shell {:dir (str root "/apps/web")} "bun" "run" "dev")}
1414 web:build {:doc "Build the web app" :task (shell {:dir (str root "/apps/web")} "bun" "run" "build")}
1515 web:preview {:doc "Preview the web build" :task (shell {:dir (str root "/apps/web")} "bun" "run" "preview")}
1616+ web:deploy {:doc "Deploy web to Cloudflare Workers" :task (shell {:dir (str root "/apps/web")} "bun" "run" "deploy")}
1617 icons {:doc "Regenerate PWA icons" :task (shell {:dir (str root "/apps/web")} "bun" "run" "generate-icons")}
17181819 api:dev {:doc "Run API server + Jetstream" :task (shell {:dir (str root "/apps/api")} "bun" "run" "dev")}
+2
tools/console/src/atradio/console.clj
···3737(defn web-dev "Run the web app (Vite)" [] (web! "bun" "run" "dev"))
3838(defn web-build "Build the web app" [] (web! "bun" "run" "build"))
3939(defn web-preview "Preview the web build (PWA active)" [] (web! "bun" "run" "preview"))
4040+(defn web-deploy "Build + deploy the web app to Cloudflare Workers" [] (web! "bun" "run" "deploy"))
4041(defn gen-icons "Regenerate the PWA icon set" [] (web! "bun" "run" "generate-icons"))
41424243;; ---- api ----
···6162 ["(web-dev)" "Run the web app (Vite)"]
6263 ["(web-build)" "Build the web app"]
6364 ["(web-preview)" "Preview the web build"]
6565+ ["(web-deploy)" "Deploy web to Cloudflare"]
6466 ["(gen-icons)" "Regenerate PWA icons"]
6567 ["(api-dev)" "Run API server + Jetstream"]
6668 ["(api-server)" "Run only the Express server"]