Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
This post was edited and submitted for review 2 years ago and failed to reopen the post:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
默认情况下文件到
.layer0
路径。为了解决此问题,我们必须将几行添加到layer0.config.js
。然后文件将如下

By default layer0 configuration not include
".nuxt/dist/sitemap-routes.json"
file into.layer0
path. In order to fix this we have to add few code lines tolayer0.config.js
.then the file will be there as below

如果您将SSR与NUXT一起使用,请让NUXT提供站点地图,而不是使用
npm Run生成
创建的静态文件。将以下内容添加到您的layer0路由器:我已经更新了我们的文档: https://docs.layer0.co/guides/nuxt#serving-sitemap-with-ssr
If you are using SSR with Nuxt, let Nuxt serve the sitemap instead of the static file you would had created with
npm run generate
. Add the following to your Layer0 router:I've updated our documentation with this information: https://docs.layer0.co/guides/nuxt#serving-sitemap-with-ssr