# Issues deploying my Next.js project correctly

**URL:** <https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701>\
**Category:** Support\
**Tags:** netlify-newbie, nextjs, building, deployment\
**Created:** [July 23, 2024, 12:21am UTC](https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701 "2024-07-23T00:21:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannarosenfeld](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hannarosenfeld/32/31673_2.png) [@hannarosenfeld](https://answers.netlify.com/u/hannarosenfeld)\
**Post date:** [July 23, 2024, 12:21am UTC](https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701/1 "2024-07-23T00:21:59Z")

</div>

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/](https://shopachi.netlify.app/)

 ![Screenshot 2024-07-22 at 8.18.04 PM](https://global.discourse-cdn.com/netlify/original/3X/6/1/61e0e43170a28a2d9ad1d57add83667b59503907.png)  
 ![Screenshot 2024-07-22 at 8.17.53 PM](https://global.discourse-cdn.com/netlify/original/3X/a/8/a86a1fe0cb0fffcc8880f22ee50d153e83ec07e6.png)  
 ![Screenshot 2024-07-22 at 8.17.11 PM](https://global.discourse-cdn.com/netlify/original/3X/f/0/f02229fe4b14036882923d1a5714be25b6dc60f7.png)

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [July 23, 2024, 12:25am UTC](https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701/2 "2024-07-23T00:25:41Z")

</div>

@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/](https://docs.netlify.com/frameworks/next-js/overview/)

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

---

<div class="post-metadata">

**Author:** ![hannarosenfeld](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hannarosenfeld/32/31673_2.png) [@hannarosenfeld](https://answers.netlify.com/u/hannarosenfeld)\
**Post date:** [July 23, 2024, 12:02pm UTC](https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701/3 "2024-07-23T12:02:36Z")

</div>

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:

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

[build.environment]
  NODE_VERSION = "18"

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

```

---

<div class="post-metadata">

**Author:** ![Melvin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/melvin/32/23606_2.png) [@Melvin](https://answers.netlify.com/u/Melvin)\
**Post date:** [July 23, 2024, 12:42pm UTC](https://answers.netlify.com/t/issues-deploying-my-next-js-project-correctly/122701/4 "2024-07-23T12:42:52Z")

</div>

Hi @hannarosenfeld,

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