Skip to content

index.html not generated? #38

Answered by frandiox
m4rvr asked this question in Q&A
Jun 21, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

@MarvinRudolph Hello! The index.html file is removed at the end of the build so it's normal that you don't find it. It's content is inlined in the SSR build so it should work without issues. To deploy, you can see an example of a Node.js server here (so anything that works with Node.js should be fine). There's also an example deploying to Vercel here.

Can it generate static pages?

There's no functionality in vite-ssr for static pages at the moment. You can either use:

  • vite-ssg, which has similar API to vite-ssr but focuses on static pages.
  • vitedge, which does SSR in CF workers so the result is cached at the edge (pretty much like a static file).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@m4rvr
Comment options

Answer selected by m4rvr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants