lulu5239 / view-loggers

https://view-loggers.vercel.app
493 stars 165 forks source link

the .env file for storing webhook url doesnt work for me #10

Closed RyfterWasTaken closed 8 months ago

RyfterWasTaken commented 8 months ago

the .env file for storing webhook url doesnt work for me(on both my version and this one), it just returns "Edge function has crashed", however it still works well when you just use const webhook = "webhook url"

Zaid-maker commented 8 months ago

cp .env.example .env then put your url and start the server if u are on local. if u are deploying on Vercel there u just have to put your webhook url

lulu5239 commented 8 months ago

There is indeed no .env file as I thought, you need to edit the environment variables from Vercel, in the project settings. It isn't available on mobile, except when enabling desktop mode. Screenshot_20240313_230553_Firefox Screenshot_20240313_230638_Firefox

lulu5239 commented 8 months ago

After editing the environment variable, we also need to make any change in the repository for Vercel to deploy the project with the updated webhook URL, or to re-deploy. Screenshot_20240313_234813_Firefox Screenshot_20240313_234838_Firefox Maybe someone knows an easier way to do it.

RyfterWasTaken commented 8 months ago

thx, works now