Skip to content

Commit e1787a2

Browse files
committed
chore: wip
1 parent ec5df76 commit e1787a2

File tree

3 files changed

+6
-11
lines changed

3 files changed

+6
-11
lines changed

.stacks/core/types/src/email.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ export type EmailOptions = Omit<IEmailOptions, 'from'> & {
66
address?: string
77
}
88

9-
domain?: string
10-
119
mailboxes?: {
1210
[key: string]: string
1311
// 'username': string

bun.lockb

-1 Bytes
Binary file not shown.

config/email.ts

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { env } from '@stacksjs/env'
2-
import { defineEmailConfig } from '../.stacks/core/config/src/helpers'
3-
import app from './app'
2+
import type { EmailConfig } from '../.stacks/core/types/src'
43

54
/**
65
* **Email Configuration**
@@ -9,15 +8,13 @@ import app from './app'
98
* you may hover any of the options below and the definitions will be provided. In case
109
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
1110
*/
12-
export default defineEmailConfig({
13-
domain: app.url,
14-
11+
export default {
1512
from: {
16-
name: env.MAIL_FROM_NAME || 'Stacks',
17-
address: env.MAIL_FROM_ADDRESS || 'no-reply@stacksjs.dev',
13+
name: env.MAIL_FROM_NAME ?? 'Stacks',
14+
address: env.MAIL_FROM_ADDRESS ?? 'no-reply@stacksjs.dev',
1815
},
1916

2017
mailboxes: {
21-
hi: 'your@mailbox.com', // enables hi@domain and forwards incoming mail to your mailbox
18+
hi: 'your@mailbox.com', // enables hi@stacksjs.com and forwards incoming mail to your@mailbox.com
2219
},
23-
})
20+
} satisfies Partial<EmailConfig>

0 commit comments

Comments
 (0)