Getting Started

Installation

  1. Add nuxt-listmonk module to your nuxt.js project:
npx
npx nuxi module add nuxt-listmonk
  1. If necessary, add nuxt-listmonk to the modules key on nuxt.config.ts file:
export default defineNuxtConfig({
  modules: ['nuxt-listmonk'],
});

Usage

  1. Set up your environment variables:
NUXT_LISTMONK_HOST=""
NUXT_LISTMONK_LIST_ID=""
  1. Add these options to the listmonk key on nuxt.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