avalynndev / enjoytown

A website where you can watch drama, anime, movies and read manga for free. crafted using next.js and shadcn/ui
https://enjoytown.netlify.app
136 stars 37 forks source link

Site deployment error. #10

Closed skgupta507 closed 5 months ago

skgupta507 commented 5 months ago

hey @avalynndev i was unable to deploy the website cause i got these errors. these errors are caused due a missing variables in the env file. which is not present in the repo. can u share the env template and where to get the api keys from. it would be a great help. or if its a different issue kindly let me know how to fix that.

Collecting page data ...

23:19:10.535 | ❌ Invalid environment variables: { DOWNLOAD_API_URL: [ 'Required' ], API_KEY: [ 'Required' ] } 23:19:10.536 | Error: Invalid environment variables 23:19:10.536 | at p (/vercel/path0/.next/server/chunks/671.js:46:9393) 23:19:10.536 | at i (/vercel/path0/.next/server/chunks/671.js:46:9573) 23:19:10.536 | at i (/vercel/path0/.next/server/chunks/671.js:46:11039) 23:19:10.536 | at 73066 (/vercel/path0/.next/server/app/kdrama/info/[id]/page.js:1:15508) 23:19:10.536 | at t (/vercel/path0/.next/server/webpack-runtime.js:1:127) 23:19:10.536 | at 30532 (/vercel/path0/.next/server/app/kdrama/info/[id]/page.js:1:13307) 23:19:10.536 | at t (/vercel/path0/.next/server/webpack-runtime.js:1:127) 23:19:10.536 | at 24194 (/vercel/path0/.next/server/app/kdrama/info/[id]/page.js:1:5989) 23:19:10.536 | at t (/vercel/path0/.next/server/webpack-runtime.js:1:127) 23:19:10.536 | at 35698 (/vercel/path0/.next/server/app/kdrama/info/[id]/page.js:1:948) 23:19:10.538 |   23:19:10.538 | > Build error occurred 23:19:10.541 | Error: Failed to collect page data for /kdrama/info/[id] 23:19:10.541 | at /vercel/path0/node_modules/next/dist/build/utils.js:1268:15 23:19:10.541 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { 23:19:10.541 | type: 'Error' 23:19:10.541 | } 23:19:10.625 | Error: Command "npm run build" exited with 1

avalynndev commented 5 months ago

At the moment there is a error with that env, so after I fix it, I'm gonna tell you.

avalynndev commented 5 months ago

update your forked repo and the env template is:

DOWNLOAD_API_URL=https://v1.api.ani.rohi.dev/api/dramacool