diff --git a/.changeset/olive-lies-train.md b/.changeset/olive-lies-train.md new file mode 100644 index 000000000000..390bea1e04b6 --- /dev/null +++ b/.changeset/olive-lies-train.md @@ -0,0 +1,6 @@ +--- +'create-svelte': patch +'@sveltejs/kit': patch +--- + +[breaking] Replace `%svelte.body%` with `%sveltekit.body%`, etc. diff --git a/documentation/docs/80-migrating.md b/documentation/docs/80-migrating.md index 8e9cae2a6582..3c6cddcf89ff 100644 --- a/documentation/docs/80-migrating.md +++ b/documentation/docs/80-migrating.md @@ -51,7 +51,6 @@ This file has no equivalent in SvelteKit. Any custom logic (beyond `sapper.start When using `adapter-node` the equivalent is a [custom server](https://github.com/sveltejs/kit/tree/master/packages/adapter-node#custom-server). Otherwise, this file has no direct equivalent, since SvelteKit apps can run in serverless environments. You can, however, use the [hooks module](/docs/hooks) to implement session logic. - #### src/service-worker.js Most imports from `@sapper/service-worker` have equivalents in [`$service-worker`](/docs/modules#$service-worker): @@ -65,7 +64,7 @@ Most imports from `@sapper/service-worker` have equivalents in [`$service-worker The `src/template.html` file should be renamed `src/app.html`. -Remove `%sapper.base%`, `%sapper.scripts%` and `%sapper.styles%`. Replace `%sapper.head%` with `%svelte.head%` and `%sapper.html%` with `%svelte.body%`. The `