Docs: Astro, Nuxt and SvelteKit guides for the server
I maintainer di solito rispondono entro 1 giorno
@anurag2787 ci sta già lavorando.
Dal 2/11/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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.
- Lingua principale
- TypeScript
- Stelle
- 13
- Fork
- 7
- Merge medio
- 3h 15m
- PR unite (30g)
- 330
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codercops/chatcops
-
Widget: a code block tagged `c++`, `c#` or `objective-c` shows part of the tag as codeForse già presa @prakashNalla l’ha presa 1 giorno fa. Apertabug widget
codercops/chatcops#578 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Server: chatcopsNext(), one catch-all route for Next.jsForse già presa @Saifjafri212213 l’ha presa 1 giorno fa. Apertaenhancement server
codercops/chatcops#574 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
@chatcops/react: a <ChatCops> component and useChatCops() hookForse già presa @Saifjafri212213 l’ha presa 1 giorno fa. Apertaenhancement widget
codercops/chatcops#573 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
codercops/chatcops#546 · 5 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
codercops/chatcops#542 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di codercops/chatcops
Issue simili
-
ci-cd desktop size:low telemetry-improvement telemetry-round-1
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
vfarcic/dot-agent-deck#2079 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno
-
Broken links in the docsAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 83/100
I maintainer di solito rispondono entro 1 giorno
-
status:in-linear
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
n8n-io/n8n#43006 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
🔊 a11y
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
betagouv/mon-entreprise#4726 ·
I maintainer di solito rispondono entro 9 giorni