Skip to content

vite: { legacy: false }: After running run build, assets resources cannot be accessed. #1332

Description

@medz

Environment


  • Operating System: Darwin
  • Node Version: v22.9.0
  • Nuxt Version: 2.18.1
  • CLI Version: 3.14.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.8.3
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Why? i using vite

Reproduction

https://stackblitz.com/~/github.com/medz/github-ocrw7j

Describe the bug

After enabling vite and running nuxi build, the static images will be renamed to xxx-xxx.png and referenced to xxx.xxx.png in the vue template.

Additional context

npm run build
npm run start

Logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions