Platforms Starter Kit - 404 homepage and login issue

Hi. I am new to Vercel, but have lots of AWS CI/CD experience. I like it so far.

I have followed the instructions to deploy the Platforms Starter Kit and have got my domain, and deployment working to an extent.

I am stuck at the point of 404 home page, and when I goto app.tld/login I can login to the app via github, but then it looks like it loops back to the login page.

I checked the cookies and it looks like this:
__Secure-next-auth.callback-url cookie has this in it:https%3A%2F%2Fapp.TLD%2Flogin

I’m assuming someone may have figured this out already. Any help is appreciated. thanks!

Update: Seems that the session is not persisting as when I call /api/auth/session is returns {}

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Looks like this is a known issue:

Update I did this AND added a public email to github (important) and still getting same behavior (but no error logs now).