incalculable-helicopter-68718
11/30/2025, 7:31 PM<http://127.0.0.1:4455>), and the frontend runs in Docker. Everything works in the browser, but SSR and API routes inside the container can’t reach 127.0.0.1:4455 because it points to the container itself.
My question is:
What’s the correct way to configure Next.js + Ory Elements so that:
• the browser uses the public Oathkeeper URL (for cookies and redirects),
• while SSR and server-side code can use an internal service URL (<http://oathkeeper:4455/>...) without breaking self-service flows?
I’m looking for real-world config examples (NEXT_PUBLIC_ORY_SDK_URL, a separate internal URL for SSR, access rules) or a recommended pattern for this kind of setup.
Any working examples or repo links would be greatly appreciated.kind-pillow-16417
12/01/2025, 6:39 PM