From 1f112a7b71712813b0193630f14425f0d1c7b587 Mon Sep 17 00:00:00 2001 From: afrontend Date: Sat, 14 Nov 2026 15:31:28 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=82=AC=EC=9D=B4=ED=8A=B8=20?= =?UTF-8?q?=EC=A3=BC=EC=86=8C=EB=A5=BC=20dongne.afrontend.dev=20=EB=A1=9C?= =?UTF-8?q?=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 개인 도메인 afrontend.dev 를 사서 Render 커스텀 도메인으로 붙였다. 옛 주소 dongne.onrender.com 도 그대로 동작한다. - 크롬 확장이 여는 주소와 homepage_url (버전 0.1.1) - index.html 공유 미리보기(og:url, og:image) - README·확장 README 링크, MCP 도구 설명, 북마클릿 테스트 주소 - 북마클릿은 window.location.origin 으로 만들므로 코드 변경 없음 --- README.md | 10 +++++----- extension/README.md | 4 ++-- extension/manifest.json | 4 ++-- extension/searchUrl.js | 2 +- extension/searchUrl.test.js | 2 +- index.html | 6 +++--- mcp-server-SSE.ts | 2 +- src/analytics.ts | 2 +- src/utils/bookmarklet.test.ts | 6 +++--- 9 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5cfb06c..9e3c17f 100644 --- a/README.md +++ b/README.md @@ -124,11 +124,11 @@ Returns JSON array of all library names - [책 검색 (HTML)](http://localhost:3000/javascript/판교) - [책 검색 (JSON)](http://localhost:3000/search?title=javascript&libraryName=판교) -## 서버에서 확인 (https://dongne.onrender.com/) +## 서버에서 확인 (https://dongne.afrontend.dev/) -- [도서관 목록 읽기 (JSON)](https://dongne.onrender.com/libraryList) -- [책 검색 (HTML)](https://dongne.onrender.com/javascript/판교) -- [책 검색 (JSON)](https://dongne.onrender.com/search?title=javascript&libraryName=판교) +- [도서관 목록 읽기 (JSON)](https://dongne.afrontend.dev/libraryList) +- [책 검색 (HTML)](https://dongne.afrontend.dev/javascript/판교) +- [책 검색 (JSON)](https://dongne.afrontend.dev/search?title=javascript&libraryName=판교) ## Usage Examples @@ -272,7 +272,7 @@ Claude 설정 > 커넥터 > 커스텀 커넥터 추가 > 원격 MCP 서버 URL | **→ AgentSandbox** | `list_libraries` / `search_books` MCP Tool이 AgentSandbox Live 모드에서 실연동. Claude Haiku가 이 서버를 실제 도구로 호출하며 AgentEvent 스트림으로 시각화됨 | | **← IVI Playground** | AbortController 기반 요청 취소 패턴 공유. 클라이언트 연결 해제 시 스크래핑까지 즉시 중단하는 구조가 IVI의 ScenarioPlayer 중단 로직과 동일 | -**Live 데모:** [AgentSandbox](https://agent-sandbox-tm5k.onrender.com) · [Dongne](https://dongne.onrender.com) · [IVI Playground](https://ivi-playground.onrender.com) +**Live 데모:** [AgentSandbox](https://agent-sandbox-tm5k.onrender.com) · [Dongne](https://dongne.afrontend.dev) · [IVI Playground](https://ivi-playground.onrender.com) --- diff --git a/extension/README.md b/extension/README.md index ed53fee..82734d0 100644 --- a/extension/README.md +++ b/extension/README.md @@ -1,6 +1,6 @@ # 동네 도서관에서 찾기 (크롬 확장) -웹에서 본 책 제목을 드래그해 [동네 도서관](https://dongne.onrender.com/)에서 바로 찾는 크롬 확장입니다. +웹에서 본 책 제목을 드래그해 [동네 도서관](https://dongne.afrontend.dev/)에서 바로 찾는 크롬 확장입니다. 같은 일을 하는 북마클릿은 사이트 맨 아래 "📚 동네 도서관" 버튼입니다. ## 쓰는 법 @@ -8,7 +8,7 @@ - 제목을 드래그하고 우클릭 → **📚 동네 도서관에서 "…" 찾기** - 또는 제목을 드래그하고 툴바의 확장 아이콘을 누릅니다. 선택이 없으면 사이트만 엽니다. -새 탭에서 `https://dongne.onrender.com/?title=<제목>&ref=ext` 가 열립니다. 도서관은 넣지 않으므로 사이트가 +새 탭에서 `https://dongne.afrontend.dev/?title=<제목>&ref=ext` 가 열립니다. 도서관은 넣지 않으므로 사이트가 내 도서관(그 사이트에서 최근에 검색한 도서관 최대 5곳)에서 찾고, 내 도서관이 없으면 제목만 채워 둡니다. GA 에서는 `entry_ref=ext` 로 구분됩니다. diff --git a/extension/manifest.json b/extension/manifest.json index 716cc27..65dac9a 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -2,9 +2,9 @@ "manifest_version": 3, "name": "동네 도서관에서 찾기", "short_name": "동네 도서관", - "version": "0.1.0", + "version": "0.1.1", "description": "웹에서 본 책 제목을 드래그해 내 동네 도서관에서 빌릴 수 있는지 바로 찾습니다.", - "homepage_url": "https://dongne.onrender.com/", + "homepage_url": "https://dongne.afrontend.dev/", "permissions": ["contextMenus", "activeTab", "scripting"], "background": { "service_worker": "background.js", diff --git a/extension/searchUrl.js b/extension/searchUrl.js index fdb3a95..5567718 100644 --- a/extension/searchUrl.js +++ b/extension/searchUrl.js @@ -1,5 +1,5 @@ // 확장이 여는 검색 주소. 북마클릿(src/utils/bookmarklet.ts)과 같은 규칙이다. -export const SITE_ORIGIN = "https://dongne.onrender.com"; +export const SITE_ORIGIN = "https://dongne.afrontend.dev"; /** 선택한 텍스트를 제목으로 다듬는다. 줄바꿈·연속 공백은 한 칸, 최대 100자 */ export const normalizeTitle = (text) => diff --git a/extension/searchUrl.test.js b/extension/searchUrl.test.js index baa706a..b4e77d1 100644 --- a/extension/searchUrl.test.js +++ b/extension/searchUrl.test.js @@ -5,7 +5,7 @@ describe("확장 검색 주소", () => { it("선택한 제목과 ref=ext 로 사이트를 연다", () => { const url = new URL(buildSearchUrl("채식주의자")); - expect(url.origin).toBe("https://dongne.onrender.com"); + expect(url.origin).toBe("https://dongne.afrontend.dev"); expect(url.searchParams.get("title")).toBe("채식주의자"); expect(url.searchParams.get("ref")).toBe("ext"); expect(url.searchParams.has("library")).toBe(false); diff --git a/index.html b/index.html index b431371..ddc1453 100644 --- a/index.html +++ b/index.html @@ -56,10 +56,10 @@ property="og:description" content="여러 지역 도서관의 책 대출 가능 여부를 실시간으로 확인하는 도서관 책 찾기 서비스" /> - + @@ -69,7 +69,7 @@ /> diff --git a/mcp-server-SSE.ts b/mcp-server-SSE.ts index 5512f2c..fccae11 100644 --- a/mcp-server-SSE.ts +++ b/mcp-server-SSE.ts @@ -77,7 +77,7 @@ function setupServerHandlers(server: Server): void { { name: "list_libraries", description: - "Get all searchable Korean libraries, one line per module as \"module: library, library, ...\". Use the module name with search_books when a library name appears in several modules. You can also find the book at https://dongne.onrender.com.", + "Get all searchable Korean libraries, one line per module as \"module: library, library, ...\". Use the module name with search_books when a library name appears in several modules. You can also find the book at https://dongne.afrontend.dev.", inputSchema: { type: "object" as const, properties: {}, diff --git a/src/analytics.ts b/src/analytics.ts index eaa873b..3d94058 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -14,7 +14,7 @@ declare global { } } -// dongne.onrender.com 웹 스트림의 측정 ID. VITE_GA_ID 가 없는 빌드도 이 ID 로 보낸다. +// 동네 도서관(dongne.afrontend.dev, 옛 주소 dongne.onrender.com) 웹 스트림의 측정 ID. VITE_GA_ID 가 없는 빌드도 이 ID 로 보낸다. const DEFAULT_GA_ID = "G-9WDTNJDBR7"; const GA_ID = import.meta.env.VITE_GA_ID || DEFAULT_GA_ID; const GA_SCRIPT_ID = "google-analytics-gtag"; diff --git a/src/utils/bookmarklet.test.ts b/src/utils/bookmarklet.test.ts index 318f630..3cda97b 100644 --- a/src/utils/bookmarklet.test.ts +++ b/src/utils/bookmarklet.test.ts @@ -14,10 +14,10 @@ describe("buildBookmarklet", () => { const open = vi.spyOn(window, "open").mockReturnValue(null); vi.spyOn(window, "getSelection").mockReturnValue({ toString: () => " 채식주의자 " } as Selection); - run(buildBookmarklet("https://dongne.onrender.com")); + run(buildBookmarklet("https://dongne.afrontend.dev")); const url = new URL(open.mock.calls[0][0] as string); - expect(url.origin).toBe("https://dongne.onrender.com"); + expect(url.origin).toBe("https://dongne.afrontend.dev"); expect(url.searchParams.get("title")).toBe("채식주의자"); expect(url.searchParams.get("library")).toBeNull(); expect(url.searchParams.get("ref")).toBe("bm"); @@ -29,7 +29,7 @@ describe("buildBookmarklet", () => { vi.spyOn(window, "getSelection").mockReturnValue({ toString: () => "" } as Selection); const ask = vi.spyOn(window, "prompt").mockReturnValue(null); - run(buildBookmarklet("https://dongne.onrender.com")); + run(buildBookmarklet("https://dongne.afrontend.dev")); expect(ask).toHaveBeenCalled(); expect(open).not.toHaveBeenCalled();