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

[Enhancement] Check if Nuxt SSR Renderer is defined #5

Open
superbiche opened this issue Sep 28, 2020 · 0 comments
Open

[Enhancement] Check if Nuxt SSR Renderer is defined #5

superbiche opened this issue Sep 28, 2020 · 0 comments
Assignees

Comments

@superbiche
Copy link

Hey, thanks for the module. Actually the only one that comes with tests and it's pretty reassuring.

I was looking at some other modules and found that https://github.com/YourSoftRun/nuxt-health has an interesting approach in testing the server (https://github.com/YourSoftRun/nuxt-health/blob/master/lib/health.js#L9) :

  server ({ nuxt }) {
    return nuxt.renderer.resources.ssrTemplate !== undefined

Just wanted to know what you think about this and if you'd like to explore this approach. I can do a PR if you want

@jreitz-dev jreitz-dev self-assigned this Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants