-
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.xml not generating #18
Comments
@crabdul, I have tried your use case, it works fine for me! My steps to reproduce: // starting from an empty project with Nuxt.js 1.4.0 from starter-template
$ npm install @nuxtjs/sitemap
$ npm install axios
// edit the nuxt.config.json with your configuration,
// add on top `const axios = require('axios')`
$ npm run build
$ npm run start
// open http://localhost:3000/sitemap.xml |
Thank you for your help! I assumed it wasn't generating the sitemap because the sitemap.xml file doesn't appear in |
is it possible to make one sitemap file and in that file, we include 5 sitemaps other files? |
@crabdul did you fixed the issue, did you put the modification date and frequency while using the axios request. I am also stuck |
@crabdul how did you solve it? I am using docker. |
@arnabrahman what is your issue? |
@NicoPennec this works fine for me when i run
from my project. But when i build my project in docker and navigate to "/sitemap.xml" route, it takes me to 404 route. |
@arnabrahman can you share your nuxt.config.js and docker config to reproduce? |
@NicoPennec At first created a nuxt project using create-nuxt-app command. Then installed @nuxtjs/sitemap. Build the dockerfile,run it and navigate to sitemap.xml where 404 error happens. I don't know if i am missing something or not. Github link of this
# docker build
$ docker build -t my-app .
# run docker project
$ docker run -p 5000:5000 my-app
|
Ok problem identified. I have to also copy nuxt.config.js into my container. And it works fine.
|
I understand the hustle, but please try this link. That worked for me |
The sitemap is not running when I run the
build
command.Below is the configuration for modules and sitemap.
I am importing axios at the start of the
nuxt.config.js
fileAxios is getting the data properly because I'm able to print out the slugs of my posts properly
Where am I going wrong?
What else can I check?
The text was updated successfully, but these errors were encountered: