Database with no password

On my local machine for development, i have a psql database with no password. When i do '' for the password for db credentials,
export default defineConfig({
schema: './src/lib/db/schema.ts',
dialect: 'postgresql',
out: './drizzle',
dbCredentials: {
user: DB_USERNAME,
password: DB_PASSWORD,
host: DB_HOST,
port: parseInt(DB_PORT),
database: DB_DATABASE // add SSL when drizzle supports it
},
verbose: true,
strict: true
});
export default defineConfig({
schema: './src/lib/db/schema.ts',
dialect: 'postgresql',
out: './drizzle',
dbCredentials: {
user: DB_USERNAME,
password: DB_PASSWORD,
host: DB_HOST,
port: parseInt(DB_PORT),
database: DB_DATABASE // add SSL when drizzle supports it
},
verbose: true,
strict: true
});
it says that password is required but i have no password
1 Reply
Pandoks_
Pandoks_2mo ago
adding a password works just putting this here cause it's a weird edge case