userback / widget-js

MIT License
4 stars 3 forks source link

NextJS SSR Support #38

Open lifeforced opened 1 year ago

lifeforced commented 1 year ago

Does this exist? If so, how do we integrate it?

Shard commented 1 year ago

Hi @lifeforced,

We don't currently have a working example of NextJS although it's something we have on our roadmap.

I have not worked with Nextjs but I believe we would need to make some code changes to allow the react module to either render the <script src> on the backend or flag that it must be executed all client side.

If you have any suggestions on how we should approach this, feel free to leave a comment!

Cheers.