svelte-sitemap
svelte-sitemap copied to clipboard
Actually can't run the script
Right now, my dependencies are like this: "@sveltejs/adapter-auto": "next", "@sveltejs/adapter-static": "^1.0.0-next.29", "@sveltejs/adapter-vercel": "^1.0.0-next.47", "@sveltejs/kit": "next",
scripts: "build": "svelte-kit build", "postbuild": "npx svelte-sitemap --domain https://danieleavolio.it"
Whenever i try to run the command I get: × Make sure you are using this script as 'postbuild' so 'build' folder was successfully created before running this script. See https://github.com/bartholomej/svelte-sitemap#readme
I don't know what to do
I’ve just tried installing this tool and I’m seeing the same issue. It’s definitely running after the build folder has been created so I’m not sure what’s going wrong.
@samsonpete @danieleavolio
Are you sure you are using adapter-static and prerender
option in svelte kit?
I've just released a new version 2.5.0
and it has slightly more accurate error messages and documentation.
Also see this FAQ section
Please update svelte-sitemap library in your project and let me know if this is clear ;)
I'm actually using the vercel adapter. Is there a way to make this working? The answer was for 21 November. Is this still working?
I’m using the netlify adapter. Will try the new update when I get a chance, thanks.
Closing for inactivity. If it doesn't work, just let me know, guys ;)