Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Aug 31, 2022
2 parents 14a1bdb + fe04202 commit bf99eac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/odd-sloths-sit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Print error if resolveOpts.ssr is set
7 changes: 3 additions & 4 deletions packages/kit/src/runtime/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,13 @@ export async function respond(request, options, state) {
try {
if (opts) {
// TODO remove for 1.0
// @ts-expect-error
if (opts.transformPage) {
if ('transformPage' in opts) {
throw new Error(
'transformPage has been replaced by transformPageChunk — see https://github.com/sveltejs/kit/pull/5657 for more information'
);
}
// @ts-expect-error
if (opts.ssr) {

if ('ssr' in opts) {
throw new Error(
'ssr has been removed, set it in the appropriate +layout.js instead. See the PR for more information: https://github.com/sveltejs/kit/pull/6197'
);
Expand Down

0 comments on commit bf99eac

Please sign in to comment.