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

Get HOST from http request #541

Open
AlekseyMelikov opened this issue Mar 5, 2023 · 1 comment
Open

Get HOST from http request #541

AlekseyMelikov opened this issue Mar 5, 2023 · 1 comment

Comments

@AlekseyMelikov
Copy link

Hi, I am newbie to Aleph.js. Please tell me, how can I get HOST from http request?

@ije
Copy link
Member

ije commented Mar 5, 2023

you can get the host from the url field of Request: new URL(req.url).hostname

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants