Refactor mailer setup and validate web configuration in app

This commit refactors how SMTP configuration for mailers is set up and introduces schema validation for incoming configurations. The mailer modules have been restructured, with schema definition files added, and redundant codes removed. Moreover, web application configuration now has minimum validation on name and title, and URL validation has been added.
This commit is contained in:
giancarlo
2024-03-27 14:10:53 +08:00
parent ff19e0c204
commit 2acd9c7d10
12 changed files with 146 additions and 70 deletions

6
pnpm-lock.yaml generated
View File

@@ -337,6 +337,9 @@ importers:
'@kit/prettier-config':
specifier: 0.1.0
version: link:../../../tooling/prettier
'@kit/shared':
specifier: 0.1.0
version: link:../../shared
'@kit/supabase':
specifier: 0.1.0
version: link:../../supabase
@@ -361,6 +364,9 @@ importers:
sonner:
specifier: ^1.4.41
version: 1.4.41(react-dom@18.2.0)(react@18.2.0)
zod:
specifier: ^3.22.4
version: 3.22.4
packages/features/team-accounts:
devDependencies: