Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v3.0.0-beta32] Host is always localhost even on vercel #6392

Closed
Djboy08 opened this issue May 16, 2024 · 0 comments
Closed

[v3.0.0-beta32] Host is always localhost even on vercel #6392

Djboy08 opened this issue May 16, 2024 · 0 comments
Assignees
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v3

Comments

@Djboy08
Copy link

Djboy08 commented May 16, 2024

Link to reproduction

No response

Describe the Bug

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.

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

@Djboy08 Djboy08 added the status: needs-triage Possible bug which hasn't been reproduced yet label May 16, 2024
@denolfe denolfe added the v3 label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet v3
Projects
None yet
Development

No branches or pull requests

3 participants