mirror of
https://github.com/beilunyang/moemail.git
synced 2026-08-04 20:56:44 +08:00
refactor: Update email and webhook configurations in deploy workflow
This commit is contained in:
7
app/config/email.ts
Normal file
7
app/config/email.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const EMAIL_CONFIG = {
|
||||
MAX_ACTIVE_EMAILS: 30, // Maximum number of active emails
|
||||
POLL_INTERVAL: 10_000, // Polling interval in milliseconds
|
||||
DOMAIN: process.env.NEXT_PUBLIC_EMAIL_DOMAIN || 'moemail.app', // Email domain
|
||||
} as const
|
||||
|
||||
export type EmailConfig = typeof EMAIL_CONFIG
|
||||
@@ -1,14 +1,2 @@
|
||||
export const EMAIL_CONFIG = {
|
||||
MAX_ACTIVE_EMAILS: 30, // Maximum number of active emails
|
||||
POLL_INTERVAL: 10_000, // Polling interval in milliseconds
|
||||
DOMAIN: process.env.NEXT_PUBLIC_EMAIL_DOMAIN || 'moemail.app', // Email domain
|
||||
} as const
|
||||
|
||||
export const WEBHOOK_CONFIG = {
|
||||
MAX_RETRIES: 3, // Maximum retry count
|
||||
TIMEOUT: 10_000, // Timeout time (milliseconds)
|
||||
RETRY_DELAY: 1000, // Retry delay (milliseconds)
|
||||
EVENTS: {
|
||||
NEW_MESSAGE: 'new_message',
|
||||
}
|
||||
} as const
|
||||
export * from './email'
|
||||
export * from './webhook'
|
||||
10
app/config/webhook.ts
Normal file
10
app/config/webhook.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export const WEBHOOK_CONFIG = {
|
||||
MAX_RETRIES: 3, // Maximum retry count
|
||||
TIMEOUT: 10_000, // Timeout time (milliseconds)
|
||||
RETRY_DELAY: 1000, // Retry delay (milliseconds)
|
||||
EVENTS: {
|
||||
NEW_MESSAGE: 'new_message',
|
||||
}
|
||||
} as const
|
||||
|
||||
export type WebhookConfig = typeof WEBHOOK_CONFIG
|
||||
Reference in New Issue
Block a user