feat(server): support SQLite via DB_TYPE env var
Build and Publish Server / build (push) Failing after 43s

This commit is contained in:
2026-08-10 17:28:45 +00:00
parent a29328f35b
commit 8b5bfe8385
2 changed files with 23 additions and 9 deletions
+2
View File
@@ -20,6 +20,7 @@ type ServerConfig struct {
}
type DatabaseConfig struct {
Type string
Host string
Port string
User string
@@ -59,6 +60,7 @@ func Load() *Config {
CORSOrigins: getEnv("CORS_ORIGINS", ""),
},
Database: DatabaseConfig{
Type: getEnv("DB_TYPE", "mysql"),
Host: getEnv("DB_HOST", "localhost"),
Port: getEnv("DB_PORT", "3306"),
User: getEnv("DB_USER", "root"),