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?
CodePudding user response:
You can now run yarn preview
(or anything related, check your package.json
, scripts
section) to see how it looks.
As also explained here: https://stackoverflow.com/a/72103370/8816585