
Getting Started
To install Nuxt CookieFirst Module for your Nuxt Project follow these steps:
- Install the dependencies:
npm
npm install nuxt-cookie-first
- Add the module to your
nuxt.config.ts
export default defineNuxtConfig({
modules: ["nuxt-cookie-first"],
});
- Add your API Key & host of website from CookieFirst
export default defineNuxtConfig({
modules: ["nuxt-cookie-first"],
cookieFirst: {
apiKey: process.env.COOKIE_FIRST_API_KEY,
host: process.env.COOKIE_FIRST_HOST, //optional - auto detected if not set
}
});
✨ That's it! CookieFirst is now set up in your Nuxt Project and works out of the box.