From 700daec919531f07c3b47d65d8d4363d076d65b8 Mon Sep 17 00:00:00 2001 From: Nathan Meadows Date: Mon, 9 Jan 2023 00:43:34 -0800 Subject: [PATCH] fix(docs): `page.server.ts` -> `layout.server.ts` (#6326) Fix documentation mistake - page.server.ts -> layout.server.ts --- packages/frameworks-sveltekit/src/lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/frameworks-sveltekit/src/lib/index.ts b/packages/frameworks-sveltekit/src/lib/index.ts index 589b017041..019bae5ccb 100644 --- a/packages/frameworks-sveltekit/src/lib/index.ts +++ b/packages/frameworks-sveltekit/src/lib/index.ts @@ -71,7 +71,7 @@ * ## Managing the session * * The above example checks for a session available in `$page.data.session`, however that needs to be set by us somewhere. - * If you want this data to be available to all your routes you can add this to your root `+page.server.ts` file. + * If you want this data to be available to all your routes you can add this to your root `+layout.server.ts` file. * The following code sets the session data in the `$page` store to be available to all routes. * * ```ts