Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

start.ts

9 lines247 Bytes

1import { createCsrfMiddleware, createStart } from '@tanstack/react-start'
2​
3export const startInstance = createStart(() => ({
4 requestMiddleware: [
5 createCsrfMiddleware({
6 filter: (ctx) => ctx.handlerType === 'serverFn',
7 }),
8 ],
9}))