T
TanStack5mo ago
sensitive-blue

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
stormy-gold
stormy-gold5mo ago
can you show a complete example repo?
sensitive-blue
sensitive-blueOP5mo ago
GitHub
GitHub - FatahChan/finflow-start
Contribute to FatahChan/finflow-start development by creating an account on GitHub.
stormy-gold
stormy-gold5mo ago
does this work if you build for node-server and run the prod build locally?
sensitive-blue
sensitive-blueOP5mo 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
stormy-gold5mo 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?