Home  >  Q&A  >  body text

Nuxt 3 doesn't recognize that my application is located in a subfolder

From the documentation, I tried all options similar to what I need:

export default defineNuxtConfig({
  build: {
    baseURL: '/myProject',
    workspaceDir: '/myProject',
    rootDir: '/myProject'
  }
})

has no effect. In myProject/.output/public/index.html I still see

, I get 404 console error:


Get http://127.0.0.1/_nuxt/entry.4419fff1.js Network::ERR_ABORTED 404 (not found)

Any idea how to make it work?

P粉310931198P粉310931198277 days ago508

reply all(1)I'll reply

  • P粉486743671

    P粉4867436712024-01-17 10:30:24

    You can now run yarn Preview (or anything for that matter, check your package.json, scripts sections) to see how it looks.
    As explained here: https://stackoverflow.com/a/72103370/8816585

    reply
    0
  • Cancelreply