pinecone-io / pinecone-vercel-starter

Pinecone + Vercel AI SDK Starter
https://pinecone-vercel-example.vercel.app
418 stars 127 forks source link

Consider bailing out early when Pinecone variables are unset #32

Open zackproser opened 8 months ago

zackproser commented 8 months ago

Currently, it's possible to start the app without the two required environment variables being set:

which might be confusing for users, because the app will appear to work but there will be stack trace in the console.

Perhaps we should consider bailing out early, i.e., not starting up successfully if either of these variables are not set.