feat(web): import oh-my-openagent-web Next.js + Cloudflare Workers site

Imports the public marketing site previously living in
../oh-my-opencode-web. Independent of the npm plugin: own package.json,
bun.lock, tsconfig.json. Not included in the published package — root
files: array still only ships dist/, bin/, postinstall.mjs.

Stack:
- Next.js 15.5 App Router + RSC, deployed to Cloudflare Workers via
  @opennextjs/cloudflare (build target .open-next/worker.js).
- Tailwind v4 + shadcn/ui primitives.
- next-intl with 4 locales (en/ja/ko/zh) under app/[locale]/.
- Playwright e2e tests under web/e2e/.
- Custom domains ohmyopenagent.com (primary) and ohmyopencode.org
  (legacy alias) declared in web/wrangler.toml.

Source files were re-formatted via `bun run format` to bring them in
line with the existing .prettierrc (singleQuote: false). Functional code
unchanged.
This commit is contained in:
YeonGyu-Kim
2026-05-08 13:35:00 +09:00
parent 2b2f21e0a1
commit f94714bbdf
74 changed files with 8076 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
export const locales = ["en", "ko", "ja", "zh"] as const
export type Locale = (typeof locales)[number]
export const defaultLocale: Locale = "en"
+16
View File
@@ -0,0 +1,16 @@
import { getRequestConfig } from "next-intl/server"
import type { Locale } from "./config"
import { routing } from "./routing"
export default getRequestConfig(async ({ requestLocale }) => {
const requested = await requestLocale
const locale: Locale =
requested && routing.locales.includes(requested as Locale)
? (requested as Locale)
: routing.defaultLocale
return {
locale,
messages: (await import(`../messages/${locale}.json`)).default,
}
})
+12
View File
@@ -0,0 +1,12 @@
import { defineRouting } from "next-intl/routing"
import { createNavigation } from "next-intl/navigation"
import { locales, defaultLocale } from "./config"
export const routing = defineRouting({
locales,
defaultLocale,
localePrefix: "as-needed",
localeDetection: true,
})
export const { Link, redirect, usePathname, useRouter, getPathname } = createNavigation(routing)