File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ export type EmailOptions = Omit<IEmailOptions, 'from'> & {
6
6
address ?: string
7
7
}
8
8
9
- domain ?: string
10
-
11
9
mailboxes ?: {
12
10
[ key : string ] : string
13
11
// 'username': string
Original file line number Diff line number Diff line change 1
1
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'
4
3
5
4
/**
6
5
* **Email Configuration**
@@ -9,15 +8,13 @@ import app from './app'
9
8
* you may hover any of the options below and the definitions will be provided. In case
10
9
* you have any questions, feel free to reach out via Discord or GitHub Discussions.
11
10
*/
12
- export default defineEmailConfig ( {
13
- domain : app . url ,
14
-
11
+ export default {
15
12
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' ,
18
15
} ,
19
16
20
17
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
22
19
} ,
23
- } )
20
+ } satisfies Partial < EmailConfig >
You can’t perform that action at this time.
0 commit comments