DEV Community

Travis Hamilton-CT
Travis Hamilton-CT

Posted on

How to publish my Next.js app into npm package

I built a simple Next.js app and want to publish it into npm package so we can reuse it in any other Next.js app.
I have npm user and published myself but failed.
It seems I had issue because of configuration of Webpack and Babel.

Next.js app is built with Typescript.

How can I make this successful?
It will be great if you share with me a public blog or documentation.

Top comments (0)