🎉 initial commit

This commit is contained in:
2026-08-17 00:22:30 +02:00
parent cd04ebe254
commit 55a51a521d
19 changed files with 1645 additions and 35 deletions
+21
View File
@@ -0,0 +1,21 @@
import { createStartHandler, defaultStreamHandler } from '@tanstack/react-start/server'
import type { Register } from '@tanstack/react-router'
import type { RequestHandler } from '@tanstack/react-start/server'
import { getAuth } from '#/lib/auth-instance'
const startFetch = createStartHandler(defaultStreamHandler)
export type ServerEntry = { fetch: RequestHandler<Register> }
const fetch: RequestHandler<Register> = (request, opts) => {
const url = new URL(request.url)
if (url.pathname.startsWith('/api/auth')) {
return getAuth().handler(request)
}
return startFetch(request, opts)
}
export default { fetch } satisfies ServerEntry