Adding apiGraphQLUrl = “${apiUrl}/graphql” in my toml file has resolved the errors shown in my first two images. You guided me very well on this!
I have also included apiDbAuthUrl = “${apiUrl}/auth”, but the rw dbAuth is not working. It´s looking for the function in http://localhost:8910/undefined/auth. Any experience with this type of error?
The docs will need a change because they say the context for these 2 parameters is only for ‘production’.
Update: I upgraded to v0.45 hoping that this fix below will resolve this issue, but it did not. It is still looking for the function in http://localhost:8910/undefined/auth.
api server: Windows fix, ensure posix paths #4440 by @Tobbe
So, to keep developing, I downgraded my project to v0.39.4 and everything works as before including rw dbAuth.
Are you on Windows or Mac? Also, could you copy output from yarn rw info?
Unless you are doing something custom with your dbAuth function, you shouldn’t need to add additional config to redwood.toml as the defaults will work, i.e. apiDbAuthUrl = “${apiUrl}/auth” is the default.
http://localhost:8910/undefined/auth means it isn’t finding ${apiUrl}.
Confirming you did you change the apiUrl variable name, i.e. it should now be:
Maybe it’s just something jammed up with node_modules. Definitely skip v0.44 (cause bugs) and aim for v0.45. Try the trouble shooting steps outlined here after upgrading to v0.45: