Warning '@neondatabase/serverless' can only connect to remote Neon/Vercel Postgres/Supabase instances through a websocket, but it still works? #4723
-
What is the point of this warning when the migrations are working when using I was able to get rid of this warning for drizzle-kit by installing The warning (src) conflicts with the advice given when no driver is installed (src):
Main question: Can I simply ignore this warning, since my migration is still working and if so what are the ramifications? See also: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Also, looking at this line I can see that a websocket IS being used...
|
Beta Was this translation helpful? Give feedback.
-
Based on my findings, I decided to ignore the warning and proceed with doing migrations without installing I guess that this warning is strictly informational. If and when something stops working, I'll give an update. |
Beta Was this translation helpful? Give feedback.
Thanks @WilliamIsted but I have removed
pg
from the project and I have confirmed that it's been removed fromnode_modules
as well as from mypackage-lock.json
file.My question is about why this warning shows, but now I think that I understand it now. I believe that it exists to let the developer know that
drizzle-kit
is about to use some WebSockets to connect in order to do the migration.I think it's a pre-emptive warning to say "Hey, if anything goes wrong, make sure your DB is accessible via WebSockets!"