@byline/cli 2.2.3 → 2.2.5
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.
|
@@ -51,6 +51,22 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
|
|
|
51
51
|
connectionString: process.env.BYLINE_DB_POSTGRES_CONNECTION_STRING || '',
|
|
52
52
|
collections,
|
|
53
53
|
defaultContentLocale: i18n.content.defaultLocale,
|
|
54
|
+
// Optional pg connection pool tuning. Omit (or leave the env vars
|
|
55
|
+
// unset) to use the adapter defaults: max=20, idleTimeoutMillis=2000,
|
|
56
|
+
// connectionTimeoutMillis=30000. Worth tuning for serverless
|
|
57
|
+
// Postgres providers (e.g. Neon) where the database sleeps and cold
|
|
58
|
+
// starts can stretch past a short connect timeout — 30s is a safe
|
|
59
|
+
// starting point.
|
|
60
|
+
//
|
|
61
|
+
// max: process.env.BYLINE_DB_POSTGRES_MAX_POOL
|
|
62
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_MAX_POOL)
|
|
63
|
+
// : undefined,
|
|
64
|
+
// idleTimeoutMillis: process.env.BYLINE_DB_POSTGRES_IDLE_TIMEOUT_MILLIS
|
|
65
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_IDLE_TIMEOUT_MILLIS)
|
|
66
|
+
// : undefined,
|
|
67
|
+
// connectionTimeoutMillis: process.env.BYLINE_DB_POSTGRES_CONNECTION_TIMEOUT_MILLIS
|
|
68
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_CONNECTION_TIMEOUT_MILLIS)
|
|
69
|
+
// : undefined,
|
|
54
70
|
})
|
|
55
71
|
|
|
56
72
|
const adminStore = createAdminStore(db.drizzle)
|
|
@@ -81,6 +81,22 @@ async function buildBylineCore(): Promise<BylineCore<AdminStore>> {
|
|
|
81
81
|
connectionString: process.env.BYLINE_DB_POSTGRES_CONNECTION_STRING || '',
|
|
82
82
|
collections,
|
|
83
83
|
defaultContentLocale: i18n.content.defaultLocale,
|
|
84
|
+
// Optional pg connection pool tuning. Omit (or leave the env vars
|
|
85
|
+
// unset) to use the adapter defaults: max=20, idleTimeoutMillis=2000,
|
|
86
|
+
// connectionTimeoutMillis=30000. Worth tuning for serverless
|
|
87
|
+
// Postgres providers (e.g. Neon) where the database sleeps and cold
|
|
88
|
+
// starts can stretch past a short connect timeout — 30s is a safe
|
|
89
|
+
// starting point.
|
|
90
|
+
//
|
|
91
|
+
// max: process.env.BYLINE_DB_POSTGRES_MAX_POOL
|
|
92
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_MAX_POOL)
|
|
93
|
+
// : undefined,
|
|
94
|
+
// idleTimeoutMillis: process.env.BYLINE_DB_POSTGRES_IDLE_TIMEOUT_MILLIS
|
|
95
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_IDLE_TIMEOUT_MILLIS)
|
|
96
|
+
// : undefined,
|
|
97
|
+
// connectionTimeoutMillis: process.env.BYLINE_DB_POSTGRES_CONNECTION_TIMEOUT_MILLIS
|
|
98
|
+
// ? Number(process.env.BYLINE_DB_POSTGRES_CONNECTION_TIMEOUT_MILLIS)
|
|
99
|
+
// : undefined,
|
|
84
100
|
})
|
|
85
101
|
|
|
86
102
|
const adminStore = createAdminStore(db.drizzle)
|