Docs: Astro, Nuxt and SvelteKit guides for the server
Maintainer antworten meist innerhalb von 1 Tag
@anurag2787 arbeitet bereits daran.
Seit 02.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 13
- Forks
- 7
- Ø Merge
- 3 Std. 15 Min.
- Gemergte PRs (30 T.)
- 330
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus codercops/chatcops
-
Widget: a code block tagged `c++`, `c#` or `objective-c` shows part of the tag as codeEvtl. vergeben @prakashNalla hat das vor 1 Tag übernommen. Offenbug widget
codercops/chatcops#578 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Server: chatcopsNext(), one catch-all route for Next.jsEvtl. vergeben @Saifjafri212213 hat das vor 1 Tag übernommen. Offenenhancement server
codercops/chatcops#574 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
@chatcops/react: a <ChatCops> component and useChatCops() hookEvtl. vergeben @Saifjafri212213 hat das vor 1 Tag übernommen. Offenenhancement widget
codercops/chatcops#573 · 2 Kommentare · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 25/100
codercops/chatcops#546 · 5 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 64/100
codercops/chatcops#542 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in codercops/chatcops
Ähnliche Issues
-
area: frontend priority: normal
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
formbricks/formbricks#9918 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
thecodacus/pithagoras#364 ·
Maintainer antworten meist innerhalb von 1 Tag
-
TestAutonomousStop_ReportsObservedState fails under host load: 1s wall-clock ceiling vs 250ms cycleOffentype:bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 65/100
nightgauge/nightgauge#2909 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 84/100
Maintainer antworten meist innerhalb von 1 Tag