从文档中,我尝试了与我需要的类似的所有选项:
export default defineNuxtConfig({
build: {
baseURL: '/myProject',
workspaceDir: '/myProject',
rootDir: '/myProject'
}
})
没有任何作用。在 myProject/.output/public/index.html 中,我仍然看到
,我得到404控制台错误:获取 http://127.0.0.1/_nuxt/entry.4419fff1.js 网络::ERR_ABORTED 404 (未找到)
知道如何让它发挥作用吗?
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号