langchain-ai / chat-langchainjs

💬 Chat with the LangChain JS/TS documentation, with sources. 💬
https://chatjs.langchain.com
MIT License
260 stars 81 forks source link

use NEXT_PUBLIC_VERCEL_URL #22

Closed yangcheng closed 7 months ago

yangcheng commented 7 months ago

use NEXT_PUBLIC_VERCEL_URL instead of VERCEL_URL to make vercel deployment working.

before this change, vercel deployment will try to connect to localhost. Resulting an error when try to send message.

screenshot-20240308-180255

vercel[bot] commented 7 months ago

@yangcheng is attempting to deploy a commit to the LangChain Team on Vercel.

A member of the Team first needs to authorize it.

bracesproul commented 7 months ago

Are you deploying this on vercel? If so the VERCEL_URL env var ships with all vercel deployments.

yangcheng commented 7 months ago

yes,I am deploying on vercel and VERCEL_URL did not work for me. let me debug more on my side. Thanks for reply