Next.js Discord

Discord Forum

Exclude folders

Unanswered
Black-tailed Gull posted this in #help-forum
Open in Discord
Black-tailed GullOP
I tried search online, but is there no way to exclude folders when doing next build? I have a ~25gb folder in my root directory of pdf's that my app searches through. I tried adding it to my tsconfig exclude, but it didnt chaange anything. Building the app now takes ~30gb of memory and takes a long time. It takes up this large memory during the Creating an optimized production build ... stage only, i've tested removing the large directory and it builds super quickly without it

1 Reply

Black-tailed GullOP
can anyone help?