import{DatabasePathGenerator as s}from"../../database-path-generator";import{CATALOG_LOCAL_DATABASE_NAME as A,CATALOG_LOCAL_DATABASE_FOLDER as o,CATALOG_REMOTE_DATABASE_NAME as _,CATALOG_REMOTE_DATABASE_FOLDER as E}from"../../../../plugins/catalog-entities/database/consts";const t="./dist/server/esbuild/cache/server",d="./src/server/providers/database/databases/catalog-sqlite/schemas/*",n="./src/server/providers/database/databases/catalog-sqlite/migrations",i=()=>{const r=process.env.DB_MODE,e=process.env.SQLD_REMOTE_DATABASE_URL,a=process.env.SQLD_REMOTE_DATABASE_AUTH_TOKEN;return e&&a?{url:e,authToken:a}:r==="remote"?{url:s.generateDatabasePath({baseDir:t,databaseName:_,additionalFolder:E})}:{url:s.generateDatabasePath({baseDir:t,databaseName:A,additionalFolder:o})}};var D={schema:d,out:n,dialect:"turso",dbCredentials:i()};export{D as default};
