Hi team . Im trying to use both ory kratos services and Frontend service under same domain . Is there is a possiblity that can i handle it in the frontend level to do this (eg : like writing middleware).My FE app is running on NEXT JS.
d
dazzling-nightfall-42114
02/04/2025, 12:13 AM
You could run a reverse proxy (e.g. Caddy) in front of both services, or use nextjs rewrites to use nextjs as a proxy itself.
But I would probably just use a
auth.<your domain>
subdomain, make your life a bit easier.
l
loud-dawn-82492
02/04/2025, 6:23 AM
Thanks @dazzling-nightfall-42114. i used nextjs rewrites in my local and its working. now im testing on the k8s cluster