From a0e3c141d5d84cb0cfdb1a20d714f92ded6482d1 Mon Sep 17 00:00:00 2001 From: jycouet Date: Fri, 1 Aug 2025 21:42:17 +0200 Subject: [PATCH 1/2] docs: remote files can be in lib or routes dir --- documentation/docs/20-core-concepts/60-remote-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/20-core-concepts/60-remote-functions.md b/documentation/docs/20-core-concepts/60-remote-functions.md index b62e6585fcb5..0baa467d9a12 100644 --- a/documentation/docs/20-core-concepts/60-remote-functions.md +++ b/documentation/docs/20-core-concepts/60-remote-functions.md @@ -25,7 +25,7 @@ export default { ## Overview -Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. +Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. You can put these remote files in the `lib` or `routes` directory. ## query From 818441cf0bc5325d1cfa398b140ea0a06457efe6 Mon Sep 17 00:00:00 2001 From: "jyc.dev" Date: Wed, 6 Aug 2025 07:36:14 +0200 Subject: [PATCH 2/2] Update documentation/docs/20-core-concepts/60-remote-functions.md Co-authored-by: Tee Ming --- documentation/docs/20-core-concepts/60-remote-functions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/20-core-concepts/60-remote-functions.md b/documentation/docs/20-core-concepts/60-remote-functions.md index 0baa467d9a12..c3c0e76b5297 100644 --- a/documentation/docs/20-core-concepts/60-remote-functions.md +++ b/documentation/docs/20-core-concepts/60-remote-functions.md @@ -25,7 +25,7 @@ export default { ## Overview -Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. You can put these remote files in the `lib` or `routes` directory. +Remote functions are exported from a `.remote.js` or `.remote.ts` file, and come in four flavours: `query`, `form`, `command` and `prerender`. On the client, the exported functions are transformed to `fetch` wrappers that invoke their counterparts on the server via a generated HTTP endpoint. Remote files must be placed in the `lib` or `routes` directory. ## query