Why is afterSignUpUrl or redirect not working? #3348
-
I am using clerk version 4.29.9 on a next.js project |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yeah I don't know exactly what happened to these commands (were used fine in a tutorial 2 months ago that I'm watching) but I found a fix from Stack Overflow Put these two in your .env.local or .env depending on which you used:
Just replace URL HERE with whatever url you'd like For sign out, I just did this in the .tsx file directly
Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
Hi - I am having the same problem and see in the URL of the clerk instance, the redirect URL is correct. But after signing in with Google or regular Email it just goes to the default landing page |
Beta Was this translation helpful? Give feedback.
-
Hey @crivera - just a note that our staff does not monitor or respond to support requests via github discussions. You may have better luck reaching out to our support team online or via discord |
Beta Was this translation helpful? Give feedback.
Yeah I don't know exactly what happened to these commands (were used fine in a tutorial 2 months ago that I'm watching) but I found a fix from Stack Overflow
Put these two in your .env.local or .env depending on which you used:
Just replace URL HERE with whatever url you'd like
Don't do it in whatever .tsx file you put the login button in.
For sign out, I just did this in the .tsx file directly
Hope this helps!