Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RyfterWasTaken opened this issue Mar 13, 2024 · 4 comments
Closed

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

RyfterWasTaken opened this issue Mar 13, 2024 · 4 comments

Comments

@RyfterWasTaken
Copy link

RyfterWasTaken commented Mar 13, 2024

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
Copy link
Contributor

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
Copy link
Owner

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 lulu5239 reopened this Mar 13, 2024
@lulu5239
Copy link
Owner

lulu5239 commented Mar 13, 2024

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
Copy link
Author

thx, works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants