How to get HomePage to be rendered with it's contents #8387
Unanswered
MrAmericanMike
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
So time ago I posted about how to have the adapter-static generate routes when building.
I am now having a different problem/issue. While the pages under
post/x/index.html
are generated correctly and with it's static content in them (Like "This is post-01") I have noticed that the mainindex.html
doesn't have the contents when inspecting the DOM.I set up a project on Stackblitz to illustrate (If you run
npm run build
you can see what I'm talking about)https://stackblitz.com/edit/sveltekit-homepage-contents
I don't understand why the main
index.html
is "empty" of content, while the other routes are not.What am I missing or doing wrong?
I would expect when inspecting
index.html
to see the DOM content there, like<h1>Main page</h1>
and theul > li
elements and all that. But that's not the case.Beta Was this translation helpful? Give feedback.
All reactions