From 434ce18d4ba9c75423194b2c7a3fcb9ab230c73c Mon Sep 17 00:00:00 2001 From: Alex Rock Date: Wed, 19 Jun 2024 21:55:22 +0200 Subject: [PATCH] docs: summarize behavior of routes files (#11720) Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> --- documentation/docs/20-core-concepts/10-routing.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/documentation/docs/20-core-concepts/10-routing.md b/documentation/docs/20-core-concepts/10-routing.md index 66f9ce3a6091..2ba9db472d3f 100644 --- a/documentation/docs/20-core-concepts/10-routing.md +++ b/documentation/docs/20-core-concepts/10-routing.md @@ -12,6 +12,12 @@ At the heart of SvelteKit is a _filesystem-based router_. The routes of your app Each route directory contains one or more _route files_, which can be identified by their `+` prefix. +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: + +* All files can run on the server +* All files run on the client except `+server` files +* `+layout` and `+error` files apply to subdirectories as well as the directory they live in + ## +page ### +page.svelte