lpubsppop01's site
I added document pages to this site:
I fixed the code that converts Markdown to HTML using remark to enable HTML tags.
It is disabled by default and can be enabled with allowDangerousHtml.
// Use remark to convert markdown into HTML string
const processedContent = await remark()
.use(remarkParse)
.use(remarkRehype, { allowDangerousHtml: true })
.use(rehypeHighlight)
.use(rehypeStringify, { allowDangerousHtml: true })
.process(modifiedContent)
References:
The original purpose of creating this site is to create an inflow path to ToLinkText and future apps. I think it's OK for now, so I'll submit the sitemap to Google Search Console later.
I tried to submit sitemap.xml at the sitemap page in Google Search Console, but it failed.
Opening https://www.lpubsppop01.com/sitemap.xml with a browser returned a status 404.
It seemed that the file was not generated.
I fixed deploy settings of Cloudflare Pages and the file was generated. There seem to be two points below.
postbuildinpackage.jsondoesn't seem to work with Cloudflare Pages deployments.next exportseems to clear existingoutdirectory contents.
Finally my "Build command" value is like this:
next build && next export && next-sitemap
It is useful to insert ls out to check whether the output files are generated.
next build && next export && ls out && next-sitemap && ls out
I'm retrying to submit sitemap.xml.