Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Netlify deploy: no xml in root #30

Open
sharkfin009 opened this issue Feb 20, 2023 · 8 comments
Open

Netlify deploy: no xml in root #30

sharkfin009 opened this issue Feb 20, 2023 · 8 comments

Comments

@sharkfin009
Copy link

Am generating a perfect xml with dynamic routes locally, but after deploying the sitemap.xml is not there.

From the deploy logs:
6:19:23 AM: [success] Generated /.output/public/sitemap.xml
6:19:23 AM: [success] You can now deploy dist to any static hosting!

If I download and look at the deploy folder, its not there, and /sitemap.xml is returning 404
Am very confused:)

@sharkfin009 sharkfin009 changed the title Netlify deploy: no xml?? Netlify deploy: no xml in root Feb 20, 2023
@gregoirepuget
Copy link

Same error for me with Netlify

@gregoirepuget
Copy link

Was working on local.
Then I try a yarn run build, and sitemap isn't working anymore...

In local, even with 'yarn run dev', sitemap is generated in ".output/public/" folder, not on "public" folder

@gregoirepuget
Copy link

Working fine on Netlify when I change Publish directory from dist to .output/public.
But website isn't working anymore...

@omeersari
Copy link

any fix to this ?

@omeersari
Copy link

I couldnt fix it, so I found a solution to use another package.

@easydrops
Copy link

I couldnt fix it, so I found a solution to use another package.

Facing the same issue here. Mind sharing what solution you ended up with?

@andrevferreiraa
Copy link

anyone found a fix for this?

@andrevferreiraa
Copy link

Guys, this is related to #13
The sitemap is being hardcoded to .outpput/public, but NITRO's preset for netlify uses /dist folder.

My solution was to apply a patch to the package just like this suggestion: #17 (comment)

I used yarn 2 instead of pnpm and it's working well.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants