svelte-sitemap icon indicating copy to clipboard operation
svelte-sitemap copied to clipboard

Cloudflare Pages solution

Open jasongitmail opened this issue 1 year ago • 2 comments

Wanted to share how to get this working with Cloudflare Pages successfully.

  1. Use import adapter from '@sveltejs/adapter-cloudflare'; instead of adapter-auto
  2. Add the following within the kit property within svelte.config.js
		adapter: adapter({
			routes: {
				include: ['/*'],
				exclude: ['<all>']
			}
		})
  1. In package.json, use "postbuild": "npx svelte-sitemap --out-dir .svelte-kit/cloudflare --domain https://example.com --debug"

jasongitmail avatar Mar 18 '23 16:03 jasongitmail