-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sitemap via SRR not working on zeit now #106
Comments
@miteyema which version on this following doc, do you use to deploy? |
@NicoPennec That would be v2. I have made a repo (configured with now) with nuxt and only your sitemap module and I still have the same error: Repo: https://github.com/miteyema/nuxt-sitemap-now |
I'm having a very similar issue where it's working locally however when it's in a live environment I am also getting Zeit Now internal server error. Though our sitemap module config is slightly different:
I believe this has been an issue for a few weeks since I first looked at the Sitemap, but have been working on other stuff since. May have to create my own sitemap.xml with a serverless function as we're going to be launching on Thursday What is actually happening?
|
@miteyema I found the issue with Now and the sitemap-module. This is due to the To fix your deploy, update your {
"version": 2,
"builds": [
{
"src": "nuxt.config.js",
"use": "@nuxtjs/now-builder",
"config": {
"serverFiles": [
".nuxt/dist/sitemap-routes.json"
]
}
}
]
} |
@NicoPennec Thank you so much for having a look at it and then solving it. Great work! |
I've been searching for this solution for hours, thanks @NicoPennec |
It seems a common use case, so I will add a FAQ section to the README file. |
Looks like the FAQ is somehow removed. I couldn't find this in the docs |
This is not mentioned on the docs, so it would be nice. The fix proposed by @NicoPennec works! |
Version
2.0.1
Reproduction link
https://github.com/miteyema/nuxt-sitemap-now
Steps to reproduce
This is the config object for sitemap in nuxt.config.js:
The generate part in nuxt.config.js:
What is expected ?
sitemap.xml is shown
What is actually happening?
"Nuxt.js Internal Server Error" is show with status code 500.
The following log is shown on the server:
The text was updated successfully, but these errors were encountered: