Nuxt 3 doesn't recognize that my application is located in a subfolder
P粉310931198
P粉310931198 2024-01-16 11:26:28
0
1
574

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粉310931198
P粉310931198

reply all(1)
P粉486743671

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template