Run the following command to install the plugin with npm:
npm install --save @rokmohar/medusa-plugin-pushover
Or with yarn:
yarn add @rokmohar/medusa-plugin-pushover
Add the plugin to your medusa-config.ts
file:
import { loadEnv, defineConfig } from '@medusajs/framework/utils'
loadEnv(process.env.NODE_ENV || 'development', process.cwd())
module.exports = defineConfig({
// ... other config
plugins: [
// ... other plugins
{
resolve: '@rokmohar/medusa-plugin-pushover',
options: {
config: {
userKey: process.env.PUSHOVER_USER_KEY ?? '',
apiToken: process.env.PUSHOVER_TOKEN ?? '',
},
},
},
],
})
Add the environment variables to your .env
and .env.template
file:
# ... others vars
PUSHOVER_USER_KEY=
PUSHOVER_API_TOKEN=