Skip to content

Locale robots.txt and sitemap.xml #264

Answered by amannn
levipadre asked this question in Q&A
Discussion options

You must be logged in to vote

That's an interesting question! I think your best shot is to read the host from the incoming request:

const host = headers().get('x-forwarded-host') || headers().get('host');

Hope this helps!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@levipadre
Comment options

Answer selected by levipadre
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants