Next.js Discord

Discord Forum

How to ignore compiling static js files in `next build`?

Unanswered
Odorous house ant posted this in #help-forum
Open in Discord
Odorous house antOP
I have some js files on static, but for some reason, NextJS trying to compile them on build, making the build process failed. This doesn't happen in v13, but in v14.

How can I ignore files that I don't want them to be compiled? Thanks

1 Reply

Odorous house antOP
Here is my webpack config