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

server.ts

11 lines367 Bytes

1// DO NOT DELETE THIS FILE!!!
2// This file is a good smoke test to make sure the custom server entry is working
3import handler from '@tanstack/react-start/server-entry'
4​
5console.log("[server-entry]: using custom server entry in 'src/server.ts'")
6​
7export default {
8 fetch(request: Request) {
9 return handler.fetch(request, { context: { fromFetch: true } })
10 },