+
Welcome to TanStack Start
+
+ Edit src/routes/index.tsx to get started.
+
+
+ )
+}
diff --git a/apps/web/src/server/api-bridge.ts b/apps/web/src/server/api-bridge.ts
new file mode 100644
index 000000000..491d59177
--- /dev/null
+++ b/apps/web/src/server/api-bridge.ts
@@ -0,0 +1,22 @@
+/**
+ * The seam between the web runtime and the Hono API.
+ *
+ * A bridge is handed the `Request` the browser (or an SSR loader) made to
+ * `/api/*` on this origin and answers it with whatever Hono answers. It is one
+ * line, and that is the point: status, body, every `Set-Cookie`, the cookie and
+ * `x-forwarded-*` headers the API reads are all already correct on the request
+ * the platform built, and stay correct exactly as long as nobody rebuilds them.
+ *
+ * `src/tests/api-bridge-contract.ts` holds this to that behaviour, including the
+ * ways a rebuilt request loses it.
+ */
+export type ApiBridge = (request: Request) => Promise