Skip to content

Commit f628e09

Browse files
committed
fix: explain XML stylesheet in dev
1 parent 2952f33 commit f628e09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/runtime/util/builder.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export function generateXslStylesheet() {
251251
Generated by <a href="https://github.com/harlan-zw/nuxt-simple-sitemap" target="_blank" rel="noopener">Nuxt
252252
Simple Sitemap</a>.
253253
</p>
254-
${process.dev ? '<div class="expl warn"><p><strong>Development preview</strong></p><p>In development, prerendered routes and data can not be displayed.</p><p>Make sure you test your production sitemap using <code>nuxi generate</code> or <code>nuxi build</code>.</p></div>' : ''}
254+
${process.dev ? '<div class="expl warn"><p><strong>Development preview</strong></p><p>URLs may be missing in development because there\'s no prerendering discovery. Make sure you test using <code>nuxi generate</code> or <code>nuxi build</code>.</p><p>Tip: You are looking at a XML stylesheet, if you want to see the raw sitemap as robots see it, please view the page source. You can disable the stylesheet using <code>xsl: false</code>. This alert is only displayed in development.</p></div>' : ''}
255255
<xsl:if test="count(sitemap:sitemapindex/sitemap:sitemap) &gt; 0">
256256
<p class="expl">
257257
This XML Sitemap Index file contains

0 commit comments

Comments
 (0)