Skip to content

Better Nuxt/Astro integration #1506

@tobiasdiez

Description

@tobiasdiez

Description

Currently, it feels like vite-plus and nuxt/astro provide two different interfaces that don't talk to each other. In particular,

  1. Nuxt/astro config cannot be used to specify vite+ config (see Use nuxt.config.ts / astro.config.mjs as Vite+ config for Nuxt/Astro #912)
  2. vp dev and vp build don't call the correct nuxt/astro commands (see Running vp dev on a new Astro project doesn't work #1123)

(both issues were raised before but are now closed although they are not fixed)

Suggested solution

ad 1: create an offical vite+ nuxt/astro module that reads the vite+ config from nuxt/astro.config and exposes it in the temporary framework folder (eg .nuxt/viteplus.config.mjs), and in vite+ add a fallback to those known locations if a main vite.config is missing.

ad 2: recognize that the project is using nuxt/astro, and then call the correct framework commands

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Metadata

Metadata

Assignees

No one assigned

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions