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

devtools-ui-kit in ssr mode #183

Closed
ManUtopiK opened this issue Apr 14, 2023 · 3 comments
Closed

devtools-ui-kit in ssr mode #183

ManUtopiK opened this issue Apr 14, 2023 · 3 comments

Comments

@ManUtopiK
Copy link
Sponsor Contributor

We can't start nuxt in ssr mode with devtools-ui-kit.
window is undefined.
I tried to alias @nuxt/devtools-kit/iframe-client without success.

Reproduction :
https://codesandbox.io/p/sandbox/inspiring-blackburn-evyfgu

@antfu
Copy link
Member

antfu commented Apr 14, 2023

Can you share a bit more about the context of why you want it to run in SSR?

@ManUtopiK
Copy link
Sponsor Contributor Author

I've been creating a CMS with an architecture very much inspired by nuxt-devtools. It use devtools-ui-kit for the moment.
We can use the cms embedded in our static site, like the nuxt-devtools popup, or running the cms in a standalone mode.
So far, I use the cms in SPA mode. I've tried in SSR mode and devtools-ui-kit does not allow that...

You can close this issue if you want.

@antfu
Copy link
Member

antfu commented Apr 14, 2023

No problem for the UI kit to supporting SSR. Just better to understand the motivations first. Thanks for explaining.

@antfu antfu closed this as completed in 4f49cd4 Apr 18, 2023
markthree pushed a commit to markthree/devtools that referenced this issue Aug 31, 2023
… v12 (nuxt#183)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Roe <daniel@roe.dev>
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