Giszmo / nostroid

A fast cross platform nostr client that even works offline
https://chat.nostr.info
Other
44 stars 11 forks source link

defined global.process in vite config file #6

Closed vishalxl closed 2 years ago

vishalxl commented 2 years ago

Before this, npm run build was giving error when validateEvent was run which internally used global.process, which came as undefined ( and no events were fetched) .

Now it runs, and fetches events.

Giszmo commented 2 years ago

It indeed fixes the production build but not all of it is needed.

vishalxl commented 2 years ago

As I see it, the JSON.stringify() line is still needed to make the build run. i see that only after adding that line am I able to run the build version on all three main browsers on windows.