refactor: update application code to use unified configuration

- Update App.tsx to use getAppConfig() instead of import.meta.env
- Update email templates to use getAppConfig() for base URL
- Update database strategy to use getDatabaseConfig() function
- Update mailgun service to use getter functions
- Remove direct unified config imports in favor of functions
- Ensure consistent configuration access throughout codebase
This commit is contained in:
William Valentin
2025-09-08 21:24:07 -07:00
parent 491f9d0314
commit a8647ff33d
4 changed files with 9 additions and 11 deletions

View File

@@ -1,8 +1,8 @@
import { EmailVerificationToken } from '../auth.types';
import { unifiedConfig } from '../../../config/unified.config';
import { getAppConfig } from '../../../config/unified.config';
export const verificationEmailTemplate = (token: EmailVerificationToken) => {
const verificationLink = `${unifiedConfig.app.baseUrl}/verify-email?token=${token.token}`;
const verificationLink = `${getAppConfig().baseUrl}/verify-email?token=${token.token}`;
return `
<html>