---
title: "Discussion on \"Next.js deployment error occurred prerendering page \"/\".\" | Hashnode"
description: "Discussion on \"Next.js deployment error occurred prerendering page \"/\".\". Troubleshoot - Next.js 13.2 deployment error on vercel"
url: "https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Next.js deployment error occurred prerendering page "/".](https://curiousmind.hashnode.dev/nextjs-deployment-error-occurred-prerendering-page?utm_source=hashnode&utm_medium=feed)

Troubleshoot - Next.js 13.2 deployment error on vercel

Apr 6, 2023 · 1 min read · curiousmind.hashnode.dev  
Updated Apr 19, 2023  
Read the article

-   [#nextjs](https://hashnode.com/tag/nextjs)
-   [#vercel](https://hashnode.com/tag/vercel)
-   [#deployment](https://hashnode.com/tag/deployment)
-   [#nextjs-132](https://hashnode.com/tag/nextjs-132)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

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

@backendbee

  
[View profile](https://hashnode.com/@backendbee)

## Responses 2

Markdown supported · ⌘↵ to post

[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 🤦‍♀️🤦‍♀️🤦‍♀️.

[Sandeep K Yaramchitti](https://hashnode.com/@sandeep1117)

[Sep 16, 2023](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235/comment/65059f8e4f2724f559f247e8)

What is the environment variable you added

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

[Sep 17, 2023](https://hashnode.com/posts/nextjs-deployment-error-occurred-prerendering-page/642f57474e7cf778e8b13235/comment/65059f8e4f2724f559f247e8#reply-65072e495b0b2cfbc556040a)

VERCEL\_FORCE\_NO\_BUILD\_CACHE = 1 ,API\_KEY
