platforms icon indicating copy to clipboard operation
platforms copied to clipboard

404 error on all three sites with custom domains applied

Open joshualinog opened this issue 1 year ago • 4 comments

the problem

image with the ID: xxxxxxxxxxxxxxxxxxxx,etc.

the domain has the suggested A record

image

and the suggested cname record

image

joshualinog avatar Jul 25 '24 17:07 joshualinog

I am getting this same issue, Following the guide Next.js Platforms Starter Kit guide resulted in 404 for me. Cannot even see any error, Can someone please help?

Rudrakaniya avatar Jul 26 '24 17:07 Rudrakaniya

i now have mine working the way i want, although i don't think its what the repo is intended to do. @Rudrakaniya could you provide some more specifics about where you are in setting it up? what is the state of your repo? what step are you on in the guide?

joshualinog avatar Jul 26 '24 18:07 joshualinog

I have deployed this repo using Vercel's deployment template. I set up all the required environment variables, but I am unable to open any page; all the pages are giving a 404 error. I tried running it locally as well, and I am able to open the login page at 'http://app.localhost:3000/login,' but it doesn't authenticate the user or allow access to the app. I am not sure what is wrong, trying to debug..

Rudrakaniya avatar Jul 26 '24 19:07 Rudrakaniya

I have deployed this repo using Vercel's deployment template. I set up all the required environment variables, but I am unable to open any page; all the pages are giving a 404 error.

I tried deploying this repo with vercel's deploy this template functionality and it broke and did not work properly. I then started from scratch with the guide and was able to get it working.

I tried running it locally as well, and I am able to open the login page at 'http://app.localhost:3000/login,' but it doesn't authenticate the user or allow access to the app. I am not sure what is wrong, trying to debug..

  1. have you done this part?:

image

  1. what is the state of your .env file locally?
  • [ ] have you changed the file name extension to .env?
  • [ ] what is the value in your NEXT_PUBLIC_ROOT_DOMAIN:?

joshualinog avatar Jul 26 '24 20:07 joshualinog

I'm having the same issue. GH is working for login but looks like session is not setting as when I goto /api/auth/session it returns {}

Home page actually says to 'Edit this page on app/home/page.tsx' instead of a default page.

I have this deployed via vercel.

Joseffb avatar Apr 04 '25 16:04 Joseffb

👋 We've updated this repo to have a more simplified example + a new guide:

  • https://github.com/vercel/platforms/pull/451
  • https://vercel.com/guides/nextjs-multi-tenant-application

leerob avatar May 11 '25 14:05 leerob