The best way to exclude the externals folder from the Next.js build process is to rename it with a leading underscore (e.g., _externals). Next.js treats folders starting with an underscore as ignored by default, preventing them from being included in the build.