NEARBuilders / near-bos-webcomponent

Embed NEAR BOS content as a web component
The Unlicense
13 stars 6 forks source link

Add usage docs on how to integrate with Next.js #43

Open elliotBraem opened 4 months ago

elliotBraem commented 4 months ago

Web components don't work great with SSR, we should add a usage section outlining out to integrate with a Next.js app

You need to install and configure near-social-vm, you can an example of this in create-near-app w/ next.js for reference

Otherwise if you're just wanting to embed one single widget or have one entry point, you can also use near-bos-webcomponent, but web components don't work so well with SSR, so you'll need a fancy import