Files
YeonGyu-Kim dc845a8808 chore(web): migrate canonical domain to omo.dev
Switch the production worker route and all hardcoded URLs from
ohmyopenagent.com to omo.dev. Six legacy domains (ohmyopenagent.com,
ohmyopencode.org, ulw.dev, ultrawork.ai, ultrawork.dev,
ultrawork.engineer) are configured to permanently (301) redirect to
omo.dev via Cloudflare Page Rules set up out-of-band via flarectl
and the CF API.

- wrangler.toml: bind worker to omo.dev + www.omo.dev only
- middleware.ts: primaryHost to omo.dev, www to apex redirect retained
- layout.tsx: primarySiteUrl + gaTrackedDomain to omo.dev (GA still G-S0QJFKT46Q)
- sitemap.ts, robots.ts: BASE_URL to https://omo.dev
- npm-downloads/route.ts: usage comment URL refreshed
- web-deploy.yml: environment URL to https://omo.dev
- manifesto.md: domain reality-check line lists omo.dev as canonical
- README*.md (5 langs): npm-downloads badge endpoint to omo.dev
2026-05-25 17:15:16 +09:00

57 lines
1.4 KiB
YAML

name: Web Deploy (Cloudflare Workers)
on:
workflow_dispatch:
inputs:
environment:
description: "Wrangler environment (leave blank for default)"
required: false
default: ""
push:
branches: [master, dev]
paths:
- "packages/web/**"
- "docs/**"
- ".github/workflows/web-deploy.yml"
concurrency:
group: web-deploy-${{ github.ref }}
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: web-production
url: https://omo.dev
defaults:
run:
working-directory: packages/web
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: "1.3.12"
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Build with OpenNext for Cloudflare
run: |
bun run prebuild
bunx opennextjs-cloudflare build
env:
NEXT_TELEMETRY_DISABLED: "1"
- name: Deploy to Cloudflare Workers
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
workingDirectory: packages/web
command: ${{ inputs.environment && format('deploy --env {0}', inputs.environment) || 'deploy' }}