Docs: Astro, Nuxt and SvelteKit guides for the server
メンテナーはふだん 1 日以内に返信
@anurag2787 がすでに取り組んでいます。
2026年11月2日 から。
評価
この issue はまだ評価されていません。
説明
F-12 task 6. website/src/content/docs/server/fetch-runtimes.mdx covers Next.js, Hono, Bun, Deno and Node's http module. Astro, Nuxt and SvelteKit sites ask how to mount the server too. All three speak the Fetch API, so each is a short section built on chatcopsVercelHandler(config), which is a plain (request: Request) => Promise<Response> (see the top of that page).
What to do
Add a section for each, after Deno:
- Astro:
src/pages/api/chat/[...path].tswithexport const prerender = false, andPOSTandOPTIONScalling the handler withcontext.request. Create the handler at module scope. - Nuxt:
server/api/chat/[...path].tswith a NitrodefineEventHandlerthat passestoWebRequest(event)to the handler. - SvelteKit:
src/routes/api/chat/[...path]/+server.tsexportingPOSTandOPTIONS.
Each one has to:
- serve
/api/chatand/api/chat/sessionfrom the same file (the widget gets its session token from the second) - set
sessionSecrets - say how that framework gives the visitor's IP, or point to
clientIpin "The visitor's IP" section (line 189), since per-IP limits are skipped without it
Update the page title and the description at the top to name the new frameworks.
Acceptance criteria
- Every block passes
pnpm docs:check, which type-checks them and checkssessionSecrets - You tried each one in a fresh app (
npm create astro@latest,npx nuxi init,npx sv create) with the widget, and it chats. Say what you ran in the PR. -
pnpm --filter @chatcops/website buildpasses. Docs only, so no changeset.
Comment on this issue to be assigned.
- 主要言語
- TypeScript
- スター
- 13
- フォーク
- 7
- 平均マージ
- 3時間 15分
- マージ済み PR(30日)
- 330
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codercops/chatcops のほかの issue
-
Widget: a code block tagged `c++`, `c#` or `objective-c` shows part of the tag as code対応中かも @prakashNalla が 1 日前に担当しました。 オープンbug widget
codercops/chatcops#578 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Server: chatcopsNext(), one catch-all route for Next.js対応中かも @Saifjafri212213 が 1 日前に担当しました。 オープンenhancement server
codercops/chatcops#574 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
@chatcops/react: a <ChatCops> component and useChatCops() hook対応中かも @Saifjafri212213 が 1 日前に担当しました。 オープンenhancement widget
codercops/chatcops#573 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
codercops/chatcops#546 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 64/100
codercops/chatcops#542 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
codercops/chatcops の issue をすべて見る
似ている issue
-
area: frontend priority: normal
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
formbricks/formbricks#9918 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
thecodacus/pithagoras#364 ·
メンテナーはふだん 1 日以内に返信
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycleオープンtype:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
nightgauge/nightgauge#2909 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信