From 62f6985e8fea6f69e105cf316649160c4f24b31f Mon Sep 17 00:00:00 2001 From: Cameron Pak Date: Mon, 6 Apr 2026 06:59:26 -0500 Subject: [PATCH] Fix typos in web integration docs Correct a grammatical error and a minor typo in the web integration documentation to improve clarity. --- .../(documentation)/integration/(frameworks)/web.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/content/docs/(documentation)/integration/(frameworks)/web.mdx b/docs/content/docs/(documentation)/integration/(frameworks)/web.mdx index 95f9198c..8045125c 100644 --- a/docs/content/docs/(documentation)/integration/(frameworks)/web.mdx +++ b/docs/content/docs/(documentation)/integration/(frameworks)/web.mdx @@ -55,7 +55,7 @@ export default { The `Config` type is a helper type which maps the correct config type based on mode. -Use `Config<"api">` when you are using React-based framework otherwise use `Config<"standalone">` to serve both the Admin UI and bknd api using the same handler +Use `Config<"api">` when you are using a React-based framework otherwise use `Config<"standalone">` to serve both the Admin UI and bknd api using the same handler ### Helper Singleton @@ -64,7 +64,7 @@ import { createBknd } from "bknd/adapter/web"; import config from "../bknd.config"; export const bknd = createBknd({ mode: "standalone", options: config }, process.env); - // ^ use "api" if not using React based framework + // ^ use "api" if using a React-based framework ``` `createBknd` returns three methods: @@ -82,7 +82,7 @@ The web adapter supports two approaches to serving the admin UI: | Path | Best For | How | |------|----------|-----| | **Client-side** (default) | React frameworks: Next.js, Astro, React Router, Tanstack Start, Waku | Import and render `` in your own React route | -| **Server-side** | Non-React frameworks: SvelteKit, Nuxt, , Bun, Node, Deno | The server serves the Admin UI assets and API | +| **Server-side** | Non-React frameworks: SvelteKit, Nuxt, Bun, Node, Deno | The server serves the Admin UI assets and API | ## Path 1: Client-Side Admin (Default) @@ -116,7 +116,7 @@ import { createBknd } from "bknd/adapter/web"; import config from "../bknd.config"; export const bknd = createBknd({ mode: "standalone", options: config }, env); - // ^ use "api" if not using React based framework + // ^ use "api" if using a React-based framework ``` You'll also need to serve the admin's static assets (JS, CSS). Choose one of three strategies: @@ -190,7 +190,7 @@ export default { ## Serving Requests -Exmaple use `bknd.serve()` as a fetch handler in your server: +Example use `bknd.serve()` as a fetch handler in your server: ```typescript title="server.ts" import { bknd } from "./bknd";