refactor(server): version logic (#9615)

* refactor(server): version

* test: better version and log checks
This commit is contained in:
Jason Rasmussen 2024-05-20 20:31:36 -04:00 committed by GitHub
parent 5f25f28c42
commit 1df7be8436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 404 additions and 509 deletions

View file

@ -33,5 +33,5 @@ export const databaseConfig: PostgresConnectionOptions = {
*/
export const dataSource = new DataSource({ ...databaseConfig, host: 'localhost' });
export const vectorExt =
export const getVectorExtension = () =>
process.env.DB_VECTOR_EXTENSION === 'pgvector' ? DatabaseExtension.VECTOR : DatabaseExtension.VECTORS;