Skip to content
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

404 not found with firebase cloud functions #43

Closed
juloxrox opened this issue Jan 29, 2019 — with CMTY · 1 comment

Comments

Copy link

commented Jan 29, 2019 — with CMTY

Version

0.2.0

Reproduction link

https://github.com/juloxrox/testsitemap

Steps to reproduce

Hi everyone,
When I do yarn dev or yarn build + yarn start I got sitemap.xml correctly generated when I visit /sitemap.xml.
But when it is served with firebase cloud functions, I get 404 not found. Don't know if it is firebase/nuxt/module related or am I missing something ?

I hosted an exemple here : https://github.com/juloxrox/testsitemap

Does someone has a solution for that please?
Thanks in advance

What is expected ?

200 Response for /sitemap.xml

What is actually happening?

404 not found

This bug report is available on Nuxt community (#c38)

@cmty cmty bot added the cmty:bug-report label Jan 29, 2019

@NicoPennec

This comment has been minimized.

Copy link
Member

commented May 12, 2019

Hi @juloxrox

I did some tests with your example (https://github.com/juloxrox/testsitemap) and I confirm that the problem comes from your side.

If I try to add a new page pages/test.vue and deploy it on firebase, but I get the same 404 error.

Then I followed another tutorial on firebase (see https://github.com/williamchong007/nuxt-ssr-firebase) and added the sitemap module. After deploying to Firebase, it works fine (see https://bug-nuxt-sitemap-module.firebaseapp.com/sitemap.xml).

Maybe you could be inspired by this implementation of Functions: https://github.com/williamchong007/nuxt-ssr-firebase/blob/master/functions/index.js

@NicoPennec NicoPennec closed this May 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.