Fix syntax errors in MapView.vue and improve backend production robustness (CORS, DB URL, auto-migrations, and seeding)
This commit is contained in:
@ -42,5 +42,12 @@ class Settings(BaseSettings):
|
||||
)
|
||||
|
||||
|
||||
# Global settings instance
|
||||
# Global settings instance
|
||||
@property
|
||||
def get_database_url(self) -> str:
|
||||
url = self.database_url
|
||||
if url.startswith("postgres://"):
|
||||
url = url.replace("postgres://", "postgresql://", 1)
|
||||
return url
|
||||
|
||||
settings = Settings()
|
||||
|
||||
Reference in New Issue
Block a user