Try building the project locally to check if the build folders are being generated correctly.
For example, set the publish directory to .next and the functions directory to netlify/functions.
If deploying with the default settings works, great! If not, update me with the results, and we’ll troubleshoot further. Thanks!