-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy path+Page.mdx
More file actions
32 lines (18 loc) · 1009 Bytes
/
+Page.mdx
File metadata and controls
32 lines (18 loc) · 1009 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { Link, Warning } from '@brillout/docpress'
import { ConfigWhereServer } from '../../components'
**Environment**: server.
<Warning>This is a beta feature.</Warning>
If you use <Link href="/telefuncFiles">`config.telefuncFiles`</Link>, then you also need to set `config.root`.
```ts
// Environment: server
import { config } from 'telefunc'
// Your project's root directory
config.root = __dirname
```
The `config.root` setting is only needed if you use <Link href="/telefuncFiles">`config.telefuncFiles`</Link>.
<ConfigWhereServer />
## Monorepo
If you have a monorepo structure, then set `config.root` to the root directory of your client-side (i.e. the root of Vite/Vike/Next.js/Nuxt/...). Don't set `config.root` to the monorepo root, nor to the root directory of your server. (The `config.root` setting enables Telefunc to match your `.telefunc.js` files/imports between the server-side and the client-side.)
## See also
- <Link href="/telefuncFiles" />
- <Link href="/transformer" />