platforms
platforms copied to clipboard
Current Deploy to Vercel failing
After configuring env variables and deploying to Vercel all routes return 404
platforms-starter-kit-three-beryl.vercel.app
You'll need a custom domain for this to work – the URL you provided above is not a custom domain (it's a Vercel preview URL).
Guide: https://vercel.com/guides/nextjs-multi-tenant-application#5.-deploy-to-vercel
Thank you @steven-tey - I'll configure a custom domain and report back if there is any issue
@steven-tay After configuring custom domains, things seem to be working, but there is a redirect to https://vercel.com/blog/platforms-starter-kit whenever I try to visit my root domain or the Vercel project domain.
Try my root domain at https://yarndi.com
@steven-tay After configuring custom domains, things seem to be working, but there is a redirect to https://vercel.com/blog/platforms-starter-kit whenever I try to visit my root domain or the Vercel project domain.
Try my root domain at https://yarndi.com
Did you fix it? I also got the same error as you.
@imminist I replied @perkail here: https://github.com/vercel/platforms/issues/236#issuecomment-1624208778 hope it helps.
I will close this one as @steven-tey said, once you configure a custom domain on Vercel and move name servers everything works great. As for the redirect, just checkout the end of the middleware.ts file and you'll see what's going on
@perkail @imminist Awesome to hear that it works! The reason that's happening is cause of the middleware code here: https://github.com/vercel/platforms/blob/main/middleware.ts#L42-L52
You can change it to rewrite to the /home route instead! :)