Server functions
Write functions that run on the server, call them from loaders and the browser, validate input, add middleware, and see what the build keeps out of client bundles.
Write server-only work as a function and call it from a component. Dusk replaces the implementation with an HTTP stub in the browser build; validation, authorization and secrets stay on the server.
Start with Call the server.