atinux / content-wind

A lightweight Nuxt theme to build a Markdown driven website. Powered by Nuxt Content, TailwindCSS and Iconify.
https://content-wind.nuxt.space
MIT License
810 stars 56 forks source link

Pre-rendered website does not work (?) #10

Closed hartmut-co-uk closed 2 years ago

hartmut-co-uk commented 2 years ago

Hi, with a freshly created project from content-wind, generate, preview the pre-rendered website doesn't seem to work, though the generate step seems successful.

Is this a problem with content v2 or with this template?

Reproduce:

npx nuxi init my-website -t atinux/content-wind
cd my-website
yarn install
yarn generate
yarn preview

Now visit http://localhost:3000/about

The 'home' page flickers and then is re-rendered with some error:

Screenshot 2022-06-06 at 12 08 59
atinux commented 2 years ago

I believe the preview command does not support static site generation so far, you can use the serve package on the dist/ directory to preview.