K
Kinde•9mo ago
MALEV0L3NT

Seamlessly integrating a separate marketing and application site

I have a bit of a weird setup in mind, might be looking for some guidance if possible. Currently, I have two separate subdomains: https://example.com - Astro.build site https://app.example.com - Next.js app I want to have my login/register buttons on the Astro site. When a user logs in from the Astro site, they should be redirected to https://app.example.com/dashboard When a user logs out from the dashboard, they should be redirected back to https://example.com I think I have most of it working (I can login/register on the astro page), I'm just not sure how to set a postLoginRedirectUrl for the typescript sdk to redirect to the next app once i've logged in
5 Replies
MALEV0L3NT
MALEV0L3NTOP•9mo ago
I'm realising now that I should have probably should have done it all in next.js with ssg for the "marketing" pages but I'm too far in now I considered it but didn't end up going that way They'd have their platform on the same subdomain right? Oh it is separate, okay Wait so I'm confused then, what are you suggesting? Oh the login button just redirects to dash.cloudflare.com/login and the auth is handled on the dashboard side, I see what you mean Managed to dicipher what you were saying lol But yeah I think that'll work well, thanks for the suggestion @quacksire
MALEV0L3NT
MALEV0L3NTOP•9mo ago
ps. rip cloudflare
No description
Oli - Kinde
Oli - Kinde•9mo ago
Hey @Joel, Sounds like @quacksire helped you solve your case. If you are still experiencing issues, please don't hesitate to reach out.
MALEV0L3NT
MALEV0L3NTOP•9mo ago
Hey Oli, thanks for checking, quacksire did help me come up with a solution that has since been implemented 🙂
Oli - Kinde
Oli - Kinde•9mo ago
Awesome, thanks for the quick reply. And kudos to @quacksire, you are making our lives easier.
Want results from more Discord servers?
Add your server