T
TanStack2mo ago
flat-fuchsia

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.
No description
5 Replies
optimistic-gold
optimistic-gold2mo ago
can you show a complete example repo?
flat-fuchsia
flat-fuchsiaOP2mo ago
GitHub
GitHub - FatahChan/finflow-start
Contribute to FatahChan/finflow-start development by creating an account on GitHub.
optimistic-gold
optimistic-gold5w ago
does this work if you build for node-server and run the prod build locally?
flat-fuchsia
flat-fuchsiaOP5w ago
netlify build && netlify serve works fine i think it the issue is with $.ts I think it's an issue with better auth
optimistic-gold
optimistic-gold5w ago
i mean: if you change the target to node-server and build, then execute locally. does it work?

Did you find this page helpful?