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

Prerender only render root document since 1.6.0 #1940

Closed
DavidWiesner opened this issue Oct 10, 2019 · 1 comment
Closed

Prerender only render root document since 1.6.0 #1940

DavidWiesner opened this issue Oct 10, 2019 · 1 comment
Labels

Comments

@DavidWiesner
Copy link

DavidWiesner commented Oct 10, 2019

Stencil version:

 @stencil/core@1.6.1

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://stencil-worldwide.herokuapp.com/ or https://forum.ionicframework.com/

Current behavior:
Prerender only render root document and failed to detect sub paths since @stencil/core@1.6.0

Expected behavior:
Prerender should detect and render all sub path recursively

Steps to reproduce:

One simple example is your stencil site repo.

  1. clone repo stencil-site
  2. install latest stencil core npm install @stencil/core@1.6.1
  3. run npm run build
  4. inspect www/sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url><loc>https://stenciljs.com/</loc></url>
</urlset>
  1. install older version of stencil core npm install @stencil/core@1.6.1
  2. run build again npm run build
  3. inspect www/sitemap.xml
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url><loc>https://stenciljs.com/</loc></url>
 <url><loc>https://stenciljs.com/blog</loc></url>
 <url><loc>https://stenciljs.com/design-systems</loc></url>
 <url><loc>https://stenciljs.com/resources</loc></url>
 <url><loc>https://stenciljs.com/blog/how-lazy-loading-web-components-work</loc></url>
 <!-- ... and many more -->

</urlset>
@pixelbucket-dev
Copy link

www/sitemap.xml still only has one route in latest stencil versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants