chirag-droid/animeflix

Error on deploying to Vercel

dakshy opened this issue · 3 comments

Describe the bug
Error: No Output Directory named "public" found after the Build completed. You can configure the Output Directory in your Project Settings. Learn More: https://vercel.link/missing-public-directory

To Reproduce
Steps to reproduce the behavior:

  1. Deploy the repo using the vercel deploy button given in Readme.md
  2. See error

Expected behavior
Of course, I wish to deploy the site.

Screenshots
image

Desktop:

  • OS: Windows 10
  • Browser: chrome

Additional context
Currently, not able to deploy it on Vercel.

I am currently using a monorepo structure. Set your output directory to frontend and see if that works

After changing Output Directory to frontend.
image

Not sure why this is closed without any solution.

However, I solved this problem by just changing the framework preset of the project in the project's settings to next js. After that, just redeploy the project.

You setting should looks like this:
--Build & dev settings--
Framework Preset: Next.js
Build Command(override): cd ../ && yarn build

--Root Directory--
frontend

--Node.js Version--
18.x