Skip to content

Commit 434ce18

Browse files
docs: summarize behavior of routes files (#11720)
Co-authored-by: Ben McCann <[email protected]>
1 parent 4cbf219 commit 434ce18

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

documentation/docs/20-core-concepts/10-routing.md

+6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ At the heart of SvelteKit is a _filesystem-based router_. The routes of your app
1212
1313
Each route directory contains one or more _route files_, which can be identified by their `+` prefix.
1414

15+
We'll introduce these files in a moment in more detail, but here are a few simple rules to help you remember how SvelteKit's routing works:
16+
17+
* All files can run on the server
18+
* All files run on the client except `+server` files
19+
* `+layout` and `+error` files apply to subdirectories as well as the directory they live in
20+
1521
## +page
1622

1723
### +page.svelte

0 commit comments

Comments
 (0)