How to remove https://localhost domin in production sitemap and robots.txt #349
Answered
by
oscarotero
officialrajdeepsingh
asked this question in
Q&A
-
Today I successfully deployed my blog site to the production domain. I'm also config the domain name in lume. const site = lume(
{
server: {
location: new URL("https://officialrajdeepsingh.dev"),
page404: "/404/",
},
},
{ markdown },
); But in production, <loc>http://localhost/5-best-javascript-library-for-you.html</loc>
<lastmod>2020-11-08T10:57:05.000Z</lastmod> But I can't find a solution yet. |
Beta Was this translation helpful? Give feedback.
Answered by
oscarotero
Jan 2, 2023
Replies: 1 comment 1 reply
-
The const site = lume(
{
location: new URL("https://officialrajdeepsingh.dev"),
server: {
page404: "/404/",
},
},
{ markdown },
); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
officialrajdeepsingh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
location
option is not a server option, it must be moved to the root of the config: