roxiness / routify-starter

https://example.routify.dev/
198 stars 55 forks source link

Where is `build:static`? #112

Closed abcfy2 closed 2 years ago

abcfy2 commented 2 years ago

https://www.routify.dev/guide/starter-Template/SSR_and_SSG

The starter template doc said there is a build:static could build SSG. But I can't find in starter template.

What's happened? How to build for SSG ?

jakobrosenberg commented 2 years ago

Hi @abcfy2. We have updated the starter template, but the documentation is unfortunate behind.

For SSG, there are three options:

  1. Clone this starter https://github.com/roxiness/routify-starter/tree/2.x-ssg
  2. Update your package.json and vite.config.js like this https://github.com/roxiness/routify-starter/commit/4a2e44979ebc36851eef7e7f110f388c17488fa0
  3. Use npx stackmix to create a new project and select static/spank under features.
abcfy2 commented 2 years ago

Thanks.