Solid-Start preloads 404 page instead of OAuth API route
I'm trying to set up OAuth in a Solid-Start project. I have a API route for a GET request to redirect to the 3rd-party server which works when accessed directly. However, when I try to make a link to that route, the app preloads the 404 page, instead. How can I get it to navigate to the correct route?
7 Replies
are u using authjs?
I'm using Lucia.
for some reason api routes are not working on my end too
I would guess this is an issue with start's router and CSR, maybe try using
window.location.replace
or something similar rather than useNavigate
if that's what you're currently usingI'm just using an
a
tag to navigate.Maybe try using something different? Start will use CSR with regular
a
tags and the client-side router might not know about your API routedid you ever solve this? having the same issue
window.location.replace works! thank you