macedonga / beunblurred

View your friends' BeReals without posting your own!
https://beunblurred.co
GNU Affero General Public License v3.0
51 stars 13 forks source link

Collecting Page Data Error #48

Closed DEVENDERMASTER closed 5 days ago

DEVENDERMASTER commented 3 weeks ago

Bug describtion: I can not build the app.

To Reproduce: Steps to reproduce the behavior:

  1. Go to 'beunblurred\' (main programm directory)
  2. Execute 'npm run build'
  3. See error

Error Log PS C:\Software\beunblurred> npm run build

beunblurred@0.1.0 build next build

▲ Next.js 14.2.12

Build error occurred Error: Failed to collect page data for /archiver at C:\Software\beunblurred\node_modules\next\dist\build\utils.js:1268:15 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'Error' } Collecting page data .

svenborgmann commented 6 days ago

If you still have the problem: add the file .env.local to your beunblurred directory. In this file add MONGODB_URI='mongodb://localhost:333' The host and port are not important because AFAIK this feature ("Archiver") does not work unless you subscribe. Maybe it does not work at all locally, I really don't know ...

svenborgmann commented 5 days ago

Ignore my previous posting. It seems, a real MongoDB installation is needed to get it working locally because when installed locally I get a 500 error with the latest build (5 hours ago) but when I use beunblurred.co it works. So, @macedonga it would be nice if you explain how to set up the MongoDB instance. I already installed mongodb, got the mongosh working but I still get an error and it seems that is what causes the error because the token is now stored in the database?

macedonga commented 5 days ago

Fixed, pull the changes and do what the readme says ;-)