You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
Please take a moment to find out whether your idea fits with the scope and aims of the project
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of how this feature would function.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
It seems you didn't fill out the issue template, but I think you're asking about Next.js support.
Unfortunately, we currently don't offer an SSR wrapper for this library. However, there are a handful of ways to use ix-video in React / Next.js server-side.
You could start by wrapping the web component in a React/Next.js component that only renders on the client.
Dynamic imports.
In Next.js, this is commonly done with dynamic imports. I suggest you look at the Dynamic Imports Next.js documentation for a more in-depth explanation.
This will prevent the rendering of ix-video until the window is defined on the client.
We'd love to export a wrapped version of ix-video that supports SSR, but we're heads down on other priorities at the moment. If that's something you'd like to see, please comment and let us know.
Hopefully, this answers your question. Should anything else come up, please don't hesitate to comment on this issue and tag one of the maintainers.
Thanks again!
luqven
changed the title
Support Next.js
feat: support next.js
Nov 28, 2022
Before you submit:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of how this feature would function.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: