How to achieve SSG? #4228
-
Hello, I want to create static pages with Preact and have began to toy around with Vike. The thing is, Vike has its own complexity and things that I can not work around at this moment. Then I thought I'd go look for a scaffold with: Vite + Preact SSG project, but couldn't find one. Ideally I did not want to make one myself. The I have some specific needs for my configuration (see: vikejs/vike#1345, if interested), and I would rather begin with a minimal setting to see how things work out. As I've said, I looked for examples, and found some for SSR, for instance: https://github.com/bluwy/create-vite-extra/tree/master/template-ssr-preact And others for SSG, but not specifically for Preact, example: https://github.com/vitejs/vite-plugin-vue/tree/main/playground/ssr-vue And finally, today I found out about preact-iso, but I'm a bit unsure how to approach the solution, I feel like this is an already solved problem, and I have the tools to assemble it, I just can't quite figure it out; I'd appreciate any guidance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
We have the SSR starter in Apart from that SSG could be achieved by invoking |
Beta Was this translation helpful? Give feedback.
-
Not released yet, but you might want to take a look at preactjs/preset-vite#86 (and if you do, let me know how it goes!) Edit: This has since been released. You can use it by creating a new project with |
Beta Was this translation helpful? Give feedback.
Not released yet, but you might want to take a look at preactjs/preset-vite#86 (and if you do, let me know how it goes!)
Edit: This has since been released. You can use it by creating a new project with
create-preact
or by setting it up yourself with@preact/preset-vite
.