Warning '@neondatabase/serverless' can only connect to remote instance, but it works?
What is the point of this warning when the migrations are working when using
@neondatabase/serverless
?
I was able to get rid of this warning for drizzle-kit by installing pg
but I'd rather not do that, even as a dev dependency, if I can help it.
The warning (src) conflicts with the advice given when no driver is installed (src):
To connect to Postgres database - please install either of 'pg', 'postgres', '@neondatabase/serverless'...Main question: Can I simply ignore this warning, since my migration is still working and if so what are the ramifications? See also: - https://github.com/drizzle-team/drizzle-orm/discussions/4723 - https://github.com/neondatabase/neon/discussions/12508 - https://www.answeroverflow.com/m/1238825489125081188
1 Reply
Update to nobody: You can just ignore it. I think it's just telling you that it has to use WebSockets to connect, so if something goes wrong you can check if the WebSockets connection is working.