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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user