Skip to content

Commit cc2614d

Browse files
add Medusa Cloud Email provider (medusajs#13781)
* add Medusa Cloud Email provider * move cloud config to project level * add tests * Create breezy-flowers-fly.md * rename medusa_cloud_config to cloud --------- Co-authored-by: Oli Juhl <[email protected]>
1 parent a9dbd03 commit cc2614d

File tree

11 files changed

+721
-18
lines changed

11 files changed

+721
-18
lines changed

.changeset/breezy-flowers-fly.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@medusajs/notification": patch
3+
"@medusajs/payment": patch
4+
"@medusajs/types": patch
5+
"@medusajs/utils": patch
6+
---
7+
8+
add Medusa Cloud Email provider

packages/core/types/src/common/config-module.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,26 @@ export type HttpCompressionOptions = {
213213
threshold?: number | string
214214
}
215215

216+
/**
217+
* @interface
218+
*
219+
* Medusa Cloud configurations.
220+
*/
221+
export type MedusaCloudOptions = {
222+
/**
223+
* The environment handle of the Medusa Cloud environment.
224+
*/
225+
environmentHandle?: string
226+
/**
227+
* The API key used to access Medusa Cloud services.
228+
*/
229+
apiKey?: string
230+
/**
231+
* The endpoint of the Medusa Cloud email service.
232+
*/
233+
emailsEndpoint?: string
234+
}
235+
216236
/**
217237
* @interface
218238
*
@@ -865,6 +885,12 @@ export type ProjectConfigOptions = {
865885
/*admin?: string[]*/
866886
}
867887
}
888+
889+
/**
890+
* This property holds configurations for running in Medusa Cloud.
891+
* It gets automatically populated in the cloud, and is not needed outside of it.
892+
*/
893+
medusaCloudOptions?: MedusaCloudOptions
868894
}
869895

870896
/**

0 commit comments

Comments
 (0)