Doesn't work in Express if I change the path of app.all(...)
The default one is app.all('/api/auth/splat', toNodeHandler(auth)).
When I change to app.all('/auth/splat', toNodeHandler(auth)). It throws an error of unknown. I am using turborepo btw. Both backend and frontend set the correct path since it successfully called, but just the auth service panic.
No screenshot since I have solved it with an alternative.
The current solution is to not change the default one, but still make this a bug. Thanks.
0 Replies