You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
req.host will always be localhost on Vercel AND local env no matter what hosts file you use.
Originally in beta9 it seemed to work fine on vercel and req.host properly indicated the correct domain. I imagine this has something to do with nextjs maybe?
The reason this is so important is because multi-tenant requires the domain name.
Link to reproduction
No response
Describe the Bug
req.host
will always belocalhost
on Vercel AND local env no matter what hosts file you use.Originally in beta9 it seemed to work fine on vercel and req.host properly indicated the correct domain. I imagine this has something to do with nextjs maybe?
The reason this is so important is because multi-tenant requires the domain name.
To Reproduce
With this github repo https://github.com/Djboy08/payload-3.0-demo/tree/multi-tenant I am using the payload 2.0 multi-tenant code from 2.0, but I changed it a bit to fit my needs and work (kind of) with 3.0.
You probably need to remove the s3 stuff in the config and I have ts ignore build errors.
Payload Version
v3.0.0-beta32
Adapters and Plugins
db-mongodb, s3
The text was updated successfully, but these errors were encountered: