---
title: "Comment by Azdine on \"Next.js deployment error occurred prerendering page \"/\".\" | Hashnode"
description: "thank you, adding the env variables actually solved it"
url: "https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235/comment/652800055e67edf90231c060"
---

[Discussion](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235)

Comment [Next.js deployment error occurred prerendering page "/".](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235)

[Azdine](https://hashnode.com/@azdinexx)

[Oct 12, 2023](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235/comment/652800055e67edf90231c060)

thank you, adding the env variables actually solved it

[Priti Solanki](https://hashnode.com/@backendbee)

[Oct 12, 2023](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235/comment/652800055e67edf90231c060#reply-65281927443b82f5baff6250)

Glad you find it helpful. I understand this error can make one pull hairs 🤦‍♀️🤦‍♀️🤦‍♀️.
