Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not break pre-rendering for SSG #113

Open
dumptyd opened this issue Nov 6, 2021 · 0 comments
Open

Do not break pre-rendering for SSG #113

dumptyd opened this issue Nov 6, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@dumptyd
Copy link

dumptyd commented Nov 6, 2021

Is your feature request related to a problem? Please describe.

I'm creating a static blog theme using nuxt-content. I used this package to support dark mode and to avoid the white flash I wrapped my default layout in color-scheme component. Because of this, nuxt's crawler stopped working and none of the pages were being pre-rendered (it took me 10+ hours of tweaking and googling to realize this). I'm assuming this has something to do with color-scheme wrapping the slot content in client-only.

Describe the solution you'd like

  • Mentioning this caveat in the documentation would be a good start.
  • Even better would be to provide a prop to somehow make this work with nuxt-content.

Describe alternatives you've considered

Nothing. I'll take white flash over no pre-rendering. 😄

Additional context

I don't have a reproduction link that's why I'm filing this as a feature request rather than a bug.

@dumptyd dumptyd added the enhancement New feature or request label Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant