mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-11 00:32:38 +02:00
- Added Electric SQL service to docker-compose for real-time data synchronization. - Introduced PostgreSQL configuration for logical replication and performance tuning. - Created scripts for initializing Electric SQL user and electrifying tables. - Implemented notification model and service in the backend. - Developed ElectricProvider and useNotifications hook in the frontend for managing notifications. - Updated environment variables and package dependencies for Electric SQL integration.
17 lines
541 B
TypeScript
17 lines
541 B
TypeScript
import { defineConfig } from '@electric-sql/cli'
|
|
|
|
export default defineConfig({
|
|
connection: {
|
|
host: process.env.ELECTRIC_HOST || 'localhost',
|
|
port: parseInt(process.env.ELECTRIC_PORT || '5133', 10),
|
|
database: process.env.POSTGRES_DB || 'surfsense',
|
|
user: process.env.ELECTRIC_USER || 'electric',
|
|
password: process.env.ELECTRIC_PASSWORD || 'electric_password',
|
|
},
|
|
outDir: './lib/electric/generated',
|
|
service: {
|
|
host: process.env.ELECTRIC_HOST || 'localhost',
|
|
port: parseInt(process.env.ELECTRIC_PORT || '5133', 10),
|
|
},
|
|
})
|
|
|