NuxtN
Nuxt2y ago
6 replies
hazard_cookie95

Change Output Dir for generated pages.

Hi, is there a way to change npx nuxi generate output directory?

I'm changing the ssr build output dir so It works with my monorepo structure.

export default defineNuxtConfig({
  nitro: {
    output: {
      dir: '../../dist/apps/client,
    },
  },
}

When I use npx nuxi generate It works as expected, BUT, it also generates a symbolic link dist folder in the app root, which is fine, but I prefer it not being created, the docs for the output generation (vite/nitro) weren´t much help.

There is a workspace structure attached.

Accepted Answer: Change Output Dir for generated pages.
Screenshot_20240713_015949.png
Was this page helpful?