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

sitemap.xml & robots.txt points to Vercel's domain #1324

Open
danieldanielecki opened this issue Apr 15, 2024 · 1 comment · May be fixed by #1326
Open

sitemap.xml & robots.txt points to Vercel's domain #1324

danieldanielecki opened this issue Apr 15, 2024 · 1 comment · May be fixed by #1326

Comments

@danieldanielecki
Copy link

Why is that happening if I have a custom domain? The links refer to my Vercel domain.

https://shop.ditectrev.com/robots.txt
Screenshot 2024-04-15 at 08 44 19

https://shop.ditectrev.com/sitemap.xml
Screenshot 2024-04-15 at 08 44 29

@valiant1x
Copy link

The problem is the use of NEXT_PUBLIC_VERCEL_URL as the baseUrl in several places across the code. This uses the internal Vercel domain rather than your prod deployment domain. Assuming you have configured TWITTER_SITE to match your prod domain, I recommend using that instead.

const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL

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

Successfully merging a pull request may close this issue.

2 participants