API routes not working when deployed to netlify
context trying to implment social login with better auth
https://www.better-auth.com/docs/integrations/tanstack
the api route works fine in dev, when i deploy to netlify the api route returns a 404
TanStack Start Integration | Better Auth
Integrate Better Auth with TanStack Start.

5 Replies
stormy-gold•5mo ago
can you show a complete example repo?
sensitive-blueOP•5mo ago
GitHub
GitHub - FatahChan/finflow-start
Contribute to FatahChan/finflow-start development by creating an account on GitHub.
stormy-gold•5mo ago
does this work if you build for node-server and run the prod build locally?
sensitive-blueOP•5mo ago
netlify build && netlify serve works fine
i think it the issue is with $.ts
I think it's an issue with better auth
stormy-gold•5mo ago
i mean: if you change the target to node-server and build, then execute locally. does it work?