From the docs I tried all options resembling the one I need:
export default defineNuxtConfig({
build: {
baseURL: '/myProject',
workspaceDir: '/myProject',
rootDir: '/myProject'
}
})
Nothing works. In myProject/.output/public/index.html
, I still see <script type="module" src="/_nuxt/entry.4419fff1.js" crossorigin></script>
and I'm getting 404 console error:
GET http://127.0.0.1/_nuxt/entry.4419fff1.js net::ERR_ABORTED 404 (Not Found)
Any idea how to make it work?