@vercel/functions 2.2.6 → 2.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @vercel/functions
2
2
 
3
+ ## 2.2.7
4
+
5
+ ### Patch Changes
6
+
7
+ - Make DB pool inert in local dev ([#13647](https://github.com/vercel/vercel/pull/13647))
8
+
3
9
  ## 2.2.6
4
10
 
5
11
  ### Patch Changes
@@ -60,6 +60,9 @@ let idleTimeoutResolve = () => {
60
60
  const bootTime = Date.now();
61
61
  const maximumDuration = 15 * 60 * 1e3 - 1e3;
62
62
  function waitUntilIdleTimeout(dbPool) {
63
+ if (!process.env.VERCEL_URL) {
64
+ return;
65
+ }
63
66
  if (idleTimeout) {
64
67
  clearTimeout(idleTimeout);
65
68
  idleTimeoutResolve();
@@ -51,7 +51,7 @@ experimental_attachDatabasePool(pgPool);
51
51
 
52
52
  #### Defined in
53
53
 
54
- [packages/functions/src/db-connections/index.ts:217](https://github.com/vercel/vercel/blob/main/packages/functions/src/db-connections/index.ts#L217)
54
+ [packages/functions/src/db-connections/index.ts:221](https://github.com/vercel/vercel/blob/main/packages/functions/src/db-connections/index.ts#L221)
55
55
 
56
56
  ---
57
57
 
package/package.json CHANGED
@@ -30,7 +30,7 @@
30
30
  "require": "./middleware.js"
31
31
  }
32
32
  },
33
- "version": "2.2.6",
33
+ "version": "2.2.7",
34
34
  "repository": {
35
35
  "directory": "packages/functions",
36
36
  "type": "git",