Skip to content

Commit

Permalink
fix(docs): page.server.ts -> layout.server.ts (#6326)
Browse files Browse the repository at this point in the history
Fix documentation mistake - page.server.ts -> layout.server.ts
  • Loading branch information
nathanmedz committed Jan 9, 2023
1 parent d8481f3 commit 700daec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/frameworks-sveltekit/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 700daec

Please sign in to comment.