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

question: how do you make this work with vercel? #2

Open
keroshanpillay opened this issue Mar 18, 2024 · 1 comment
Open

question: how do you make this work with vercel? #2

keroshanpillay opened this issue Mar 18, 2024 · 1 comment

Comments

@keroshanpillay
Copy link

sorry for posting here guys but for the life of me, I can't figure out what is wrong. when deploying to vercel and trying to sign in using email, there is only one request to alchemy (where there is usually two when I run it locally).

locally, the api requests look as follows:

  1. to https://api.g.alchemy.com/signer/v1/lookup with my email as the body
  2. https://api.g.alchemy.com/signer/v1/auth with email, targetPublicKey and expirationSeconds in the body

when you deploy the exact same app to vercel, you only get one api request and that is number (1):

  1. to https://api.g.alchemy.com/signer/v1/lookup with my email as the body

my environment variables are identical between local and vercel instances and the project is identical to how you guys have setup the api routes, signer, context, etc.

any help would be awesome...

@adarshswaminath
Copy link

sorry for posting here guys but for the life of me, I can't figure out what is wrong. when deploying to vercel and trying to sign in using email, there is only one request to alchemy (where there is usually two when I run it locally).

locally, the api requests look as follows:

  1. to https://api.g.alchemy.com/signer/v1/lookup with my email as the body
  2. https://api.g.alchemy.com/signer/v1/auth with email, targetPublicKey and expirationSeconds in the body

when you deploy the exact same app to vercel, you only get one api request and that is number (1):

  1. to https://api.g.alchemy.com/signer/v1/lookup with my email as the body

my environment variables are identical between local and vercel instances and the project is identical to how you guys have setup the api routes, signer, context, etc.

any help would be awesome...

Here are a couple of suggestions that might help:

  • Double-check Environment Variables: Ensure that your Alchemy API Key and RPC URL on Vercel match exactly with your local .env file. Pay attention to any sneaky spaces or quotes that might be different.
  • Investigate Vercel Logs: Take a look at Vercel's deployment logs for any clues. Check for any errors related to Alchemy API requests.

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

2 participants