Skip to content

Commit 616ec7a

Browse files
sphinxc0rebenmccannRich-Harris
authored
Added comment about hook files and initialization (#6756)
* Added comment about hook files and initialization * ORMs -> clients Co-authored-by: Ben McCann <[email protected]> * Removed redundant wording: run code that runs * Update documentation/docs/07-hooks.md Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Rich Harris <[email protected]>
1 parent 4ef08d7 commit 616ec7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/07-hooks.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ There are two hooks files, both optional:
99
- `src/hooks.server.js` — your app's server hooks
1010
- `src/hooks.client.js` — your app's client hooks
1111

12+
Code in these modules will run when the application starts up, making them useful for initializing database clients and so on.
13+
1214
> You can configure the location of these files with [`config.kit.files.hooks`](/docs/configuration#files).
1315
1416
### Server hooks

0 commit comments

Comments
 (0)