Getting Started
Installation
- Add nuxt-listmonk module to your nuxt.js project:
npx
npx nuxi module add nuxt-listmonk
- If necessary, add
nuxt-listmonk
to themodules
key onnuxt.config.ts
file:
export default defineNuxtConfig({
modules: ['nuxt-listmonk'],
});
Usage
- Set up your environment variables:
NUXT_LISTMONK_HOST=""
NUXT_LISTMONK_LIST_ID=""
- Add these options to the
listmonk
key onnuxt.config.ts
file:
export default defineNuxtConfig({
modules: ['nuxt-listmonk'],
listmonk: {
host: process.env.NUXT_LISTMONK_HOST,
listId: process.env.NUXT_LISTMONK_LIST_ID,
},
});
Table of Contents