Section 1
Routes come from the folder structure. A file named page becomes a route, and brackets in a folder name become a parameter.
Section 2
Guards run before a page renders. Return a redirect to send the visitor elsewhere, or throw to show the error page.
Section 3
Loaders run on the server and hand typed data to the page. Cache a result for a time, or revalidate it on demand.
Section 4
Sessions live in a signed cookie. Add a role to restrict a route, and read the current user from any loader.
Section 5
Previews build on every branch. Promote one to production when it looks right, and roll back with one command.
Section 6
Routes come from the folder structure. A file named page becomes a route, and brackets in a folder name become a parameter.
Section 7
Guards run before a page renders. Return a redirect to send the visitor elsewhere, or throw to show the error page.
Section 8
Loaders run on the server and hand typed data to the page. Cache a result for a time, or revalidate it on demand.
Section 9
Sessions live in a signed cookie. Add a role to restrict a route, and read the current user from any loader.
Section 10
Previews build on every branch. Promote one to production when it looks right, and roll back with one command.