Skip to content

Nuxt

  1. Install the package:

    Terminal window
    npm install aeo.js
  2. Add the module to your Nuxt config:

    nuxt.config.ts
    export default defineNuxtConfig({
    modules: ['aeo.js/nuxt'],
    aeo: {
    title: 'My Site',
    description: 'A site optimized for AI discovery',
    url: 'https://mysite.com',
    },
    });

The Nuxt module:

  • Scans your pages/ directory for routes
  • Generates AEO files during dev and production builds
  • Scans pre-rendered HTML from .output/public/ for full page content
  • Injects the widget as a client-side Nuxt plugin
  • Adds <link> and <meta> tags for AEO discoverability

Pass any AeoConfig options in the aeo key:

export default defineNuxtConfig({
modules: ['aeo.js/nuxt'],
aeo: {
title: 'My Site',
url: 'https://mysite.com',
generators: {
robotsTxt: true,
llmsTxt: true,
rawMarkdown: true,
},
widget: {
enabled: true,
position: 'bottom-left',
},
},
});