#Next JS NPM packaging

1 messages · Page 1 of 1 (latest)

glossy pilot
#

Can someone please help with the above issue?

#

I have finally get rid of the api route, by using getServerSideProps instead. But I'm unsure on what would be the best way to package this as an NPM package? Say I want to use the next js NPM component in a main application, how would the package.json look like?