fix(web): serve from ytgenerator.stream root and retire the GitHub Pages deploy
The Worker connected to ytgenerator.stream was serving a build made for the GitHub Pages sub-path: index.html asked for /youtube-generator/assets/*.js, the SPA fallback answered every one of those with index.html, and the site loaded blank. Both builds are now served from `/`. - vite.config.ts: base "/" for web and Tauri alike. - wrangler.jsonc: the one Cloudflare file in the repo. Assets-only for now (dist/, SPA fallback, custom domain declared so `wrangler deploy` never detaches it, workers.dev off, build.command runs `npm run build`). - public/_headers: CSP, nosniff, Referrer-Policy, Permissions-Policy, COOP, X-Frame-Options; immutable caching for hashed /assets/*. No HSTS - the zone edge already sends it with preload. - index.html, manifest, robots, sitemap: canonical/OG/JSON-LD on the new domain, pt-BR and id added to the locale metadata, Android listed. - Brand: one SVG source in assets/brand/ now drives the favicon, the PWA icons (192/512/maskable), apple-touch-icon, a 1200x630 link-preview card and every Tauri desktop/Android/iOS icon. The desktop and Android apps had been shipping a flat indigo placeholder square; manifest and index.html pointed at four PNGs that did not exist. `npm run generate:brand` re-renders the web images; the Android adaptive icon gets a glyph-only foreground on the brand colour instead of a tile on a white disc. - deploy-web.yml and notify-deploy.yml removed, .nojekyll dropped. The last Pages deployment stays online untouched until the data-migration page replaces it. - .node-version pins Node 22 for Workers Builds; wrangler, @tauri-apps/cli and @resvg/resvg-js are pinned dev dependencies (`npm run cf:dev`, `npm run cf:check` for a dry-run deploy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
35b5badbac
commit
1fc939b711
96 files changed
+1822
-94
No files matched your search
@@ -21,10 +21,11 @@ body:
|
||||
attributes:
|
||||
label: Where are you running YTDescGen?
|
||||
options:
|
||||
- Web (GitHub Pages)
|
||||
- Web (ytgenerator.stream)
|
||||
- Desktop — Windows (Tauri)
|
||||
- Desktop — macOS (Tauri)
|
||||
- Desktop — Linux (Tauri)
|
||||
- Android (APK)
|
||||
- Local dev (npm run dev)
|
||||
validations:
|
||||
required: true
|
||||
|
||||
@@ -1,31 +0,0 @@
|
||||
name: Deploy to GitHub Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pages: write
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
steps:
|
||||
- uses: actions/checkout@v7
|
||||
- uses: actions/setup-node@v7
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- uses: actions/configure-pages@v6
|
||||
- uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: dist
|
||||
- id: deployment
|
||||
uses: actions/deploy-pages@v5
|
||||
@@ -1,18 +0,0 @@
|
||||
name: Notify Deploy Status
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
# Match the exact `name:` of the deploy workflow
|
||||
# (.github/workflows/deploy-web.yml). Renaming it silently breaks this
|
||||
# filter — keep them in sync.
|
||||
workflows: ["Deploy to GitHub Pages"]
|
||||
types: [completed]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
uses: poli0981/.github/.github/workflows/notify-deploy.yml@main
|
||||
secrets: inherit
|
||||
Reference in new issue
Block a user