Skip to content

Cloudflare Pages solution #37

Open
@jasongitmail

Description

@jasongitmail

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions