meshtastic / web-flasher

Official online flasher for Meshtastic device firmware
https://flasher.meshtastic.org
GNU General Public License v3.0
41 stars 17 forks source link

Project works on localhost but doesnt when deployed to vercel #26

Closed its-aomi closed 4 months ago

its-aomi commented 5 months ago

Hi the project seems to work fine on localhost however on deployment to vercel it doesn't. Looks like due to the api that gets the firmware list as everything works fine except for the firmware list which doesn't show when deployed to vercel.

How do i overcome this and load the firmware list? image

sachaw commented 5 months ago

Yeah, that's the CORS policy we have, is there any reason you want to deploy this yourself?

its-aomi commented 5 months ago

Yeah, i am trying to deploy this to my own vercel account for testing purposes, tried on localhost worked fine, but tried online and didnt. Is there any way i can host the api myself?

sachaw commented 5 months ago

Yes, you can spin up an instance of the API. It is located in the meshtastic/api repo.