Jarvis

Nuxt.js (Vue) Integration

Add your AEO blog to a Nuxt.js application using route rules.

Nuxt 3 has built-in proxy support through Nitro's route rules. Nuxt 2 uses the @nuxtjs/proxy module. Both approaches are straightforward and require just a few lines of configuration.

Requirements

  • Nuxt 3: no additional packages needed (Nitro handles proxying natively).
  • Nuxt 2: install @nuxtjs/proxy (npm install @nuxtjs/proxy).
  • Must be running in SSR mode (not static generation) for proxying to work.
  • If you use static generation (nuxt generate), use Nginx or your hosting platform's rewrite rules instead.
1

Nuxt 3: Add route rules in nuxt.config.ts

Open nuxt.config.ts and add the routeRules option:

export default defineNuxtConfig({
  routeRules: {
    "/blog": {
      proxy: { to: "https://app.aeo.how/{brand_slug}/blog" },
    },
    "/blog/**": {
      proxy: { to: "https://app.aeo.how/{brand_slug}/blog/**" },
    },
  },
});

Replace {brand_slug} with your own brand slug — the first segment of your platform blog URL (app.aeo.how/{brand_slug}/blog). Nitro (Nuxt 3's server engine) intercepts matching requests and proxies them to AEO.

2

Nuxt 2: Install and configure @nuxtjs/proxy

First install the module:

npm install @nuxtjs/proxy

Then add to nuxt.config.js:

module.exports = {
  modules: ["@nuxtjs/proxy"],
  proxy: {
    "/blog": {
      target: "https://app.aeo.how",
      changeOrigin: true,
      pathRewrite: { "^/blog": "/{brand_slug}/blog" },
    },
  },
};

Keep changeOrigin set to true: the request must reach AEO with Host: app.aeo.how, otherwise it is rejected with 403. AEO identifies your brand from the {brand_slug} in the path, not from the Host header.

3

Test locally

Run your Nuxt dev server and visit localhost:3000/blog. You should see your AEO blog content.

4

Deploy

Deploy as usual. Make sure you deploy in SSR mode (not static). The proxy rules work the same in production.

If deploying to Vercel or Netlify, consider using their native rewrite rules instead. See the Cloud Hosting guide.

Nuxt 3 route rules are the cleanest solution: no extra packages needed.

If using static generation (nuxt generate), proxying won't work. Use Nginx or your cloud hosting's rewrite rules.

Nuxt.js (Vue) Integration | Jarvis AEO/SEO Help