Issues deploying my Next.js project correctly

Hi, I have a project containing a Netlify frontend and Strapi (CMS) backend. I am trying to deploy it on Netlify.

Running my site with the netlify-cli works.

site name is https://shopachi.netlify.app/



@hannarosenfeld You might want to try reading (or re-reading) the Netlify documentation for whichever version of Next you’re working with?

13.5+
https://docs.netlify.com/frameworks/next-js/overview/

10 - 13.4
https://docs.netlify.com/frameworks/next-js/runtime-v4/overview/

1 Like

Just wanted to close this ticket since I was able to solve it by adding a netlify.toml in my root with the following contents:

[build]
  base = "/frontend"
  publish = "/.next"
  command = "npm run build"

[build.environment]
  NODE_VERSION = "18"

[[plugins]]
  package = "@netlify/plugin-nextjs"
1 Like

Hi @hannarosenfeld,

Thanks for updating this post and letting us know how you solved the issue. Hope you have a great day!