Does serverless execute functions locally at deployment?

I am using the lalalambda plugin, Knex and schwifty.

Every time I deploy my nodejs function via sls deploy, it seems like the pg client in Knex is trying to acquire a connection to my Aurora Postgre db.

Is Knex making serverless establish a connection at deployment, or is it Serverless that is executing the function locally?