feat: remove supabase

This commit is contained in:
2024-11-28 21:08:27 +08:00
parent ce6037ead9
commit 1616177026
6 changed files with 16 additions and 48 deletions

View File

@@ -1,26 +0,0 @@
import { useConfig } from '@kevisual/use-config';
import { Sequelize } from 'sequelize';
type PostgresConfig = {
supabaseSQL: {
username: string;
password: string;
host: string;
port: number;
database: string;
};
};
const config = useConfig<PostgresConfig>();
const postgresConfig = config.supabaseSQL;
if (!postgresConfig) {
console.error('postgres config is required');
process.exit(1);
}
// connect to db
export const sequelize = new Sequelize({
dialect: 'postgres',
...postgresConfig,
// logging: false,
});