Created by KC on 6/18/2024 in #🙋questions
How do I debug why an actions endpoint is returning a 404?
Here's what I am seeing in the logs for the server 2024-06-18T10:00:10Z app[redacted] sin [info]GET /auth/me 304 5.758 ms - - 2024-06-18T10:00:10Z app[redacted] sin [info]POST /operations/update-current-user 404 0.332 ms - 170 However, this was working when tested locally. The auth seems to be working fine, so I don't think it is a DB connection issue. I am also seeing this after a deploy: redacted 2024-06-18T16:42:41Z app[redacted] sin [info]🔍 Validating environment variables... 2024-06-18T16:42:42Z app[redacted] sin [info]🚀 "Email and password" auth initialized 2024-06-18T16:42:42Z app[redacted] sin [info]Server listening on port 8080 I am using the same update user action as defined in the OpenSaaS template.
15 replies
Created by KC on 6/12/2024 in #🙋questions
Should the `/login` route respect the `onAuthSucceededRedirectTo` when the user visits `/login`?
When the user first logs in from the login route, they are redirected to the path set in onAuthSucceededRedirectTo. However, when the user is already logged in and visits the login route path /login, they are redirected to /. I am using email auth if that helps.
9 replies
Created by KC on 4/17/2024 in #🙋questions
Is there an easy way to use another Tailwind Component Library or shadcn?
I tried setting up daisyui with the existing CSS and it messed up everything. I am wondering if there is an easy way to do this. I am okay to even just use something like shadcn/ui where we can copy paste code but it does require some setup - https://ui.shadcn.com/docs/installation/next. Please ignore my inexperience with React/NextJS. I primarily do backend work and this is my first time working with React.
21 replies