swift-processor-51967
04/21/2025, 4:12 PMswift-processor-51967
04/21/2025, 4:15 PMVERCEL_URL
is set to the auto-generated URL?swift-processor-51967
04/21/2025, 4:17 PMswift-processor-51967
04/21/2025, 4:45 PMNEXT_PUBLIC_VERCEL_URL
, meaning that we can’t use anything other than the default deployment URL (<http://my-site-7q03y4pi5.vercel.app|my-site-7q03y4pi5.vercel.app>
)bland-eye-99092
04/21/2025, 6:33 PMswift-processor-51967
04/21/2025, 9:29 PMURL would be on the same domain (can still be a different subdomain). So Cookies & CORS are not an issueIsn’t a different subdomain still a separate origin?
bland-eye-99092
04/21/2025, 9:35 PMswift-processor-51967
04/21/2025, 9:37 PMswift-processor-51967
04/21/2025, 9:38 PMswift-processor-51967
04/21/2025, 9:39 PMbland-eye-99092
04/21/2025, 9:41 PMswift-processor-51967
04/21/2025, 9:47 PMswift-processor-51967
04/21/2025, 9:48 PMswift-processor-51967
04/21/2025, 9:48 PMbland-eye-99092
04/21/2025, 9:54 PMVERCEL_ENV
is for your deployment.swift-processor-51967
04/21/2025, 9:55 PMbland-eye-99092
04/21/2025, 9:56 PMswift-processor-51967
04/21/2025, 9:56 PMswift-processor-51967
04/21/2025, 9:57 PMbland-eye-99092
04/21/2025, 10:02 PMVERCEL_ENV=preview
, as that should behave similar to production
, IMO.
Your end goal is to move the hosted account experience?swift-processor-51967
04/21/2025, 10:07 PMYour end goal is to move the hosted account experience?I think that would be the best, we don’t have super strict branding needs that couldn’t be addressed with Ory hosted. We actually do use the Ory hosted setup in production today (https://auth.source.coop/) but have basically rewritten the frontend and I’m trying to understand what is necessary from the legacy-style of using Ory to the modern-style of using Ory. ie, I’m loving the middleware rather than the tunnel, but I’m not sure what the ideal auth flow is for a NextJS app with SSR. Some Ory docs reference cookies, others reference the classic Client Authorization flow which I assumes implies JWTs. I’m having some issues understanding which auth workflow would be ideal for a modern NextJS app that would fit in with Ory’s best-practices in the upcoming future
bland-eye-99092
04/22/2025, 8:16 PM