Skip to content

Commit 8ede5d0

Browse files
authored
docs: proxy runtime defaults to nodejs (#85204)
Proxy runtime defaults to nodejs and does not allow runtime config since #85139
1 parent 27a3fa7 commit 8ede5d0

File tree

1 file changed

+1
-13
lines changed
  • docs/01-app/03-api-reference/03-file-conventions

1 file changed

+1
-13
lines changed

docs/01-app/03-api-reference/03-file-conventions/proxy.mdx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -190,19 +190,7 @@ Proxy will be invoked for **every route in your project**. Given this, it's cruc
190190

191191
## Runtime
192192

193-
Proxy defaults to using the Edge runtime. As of v15.5, we have support for using the Node.js runtime. To enable, in your proxy file, set the runtime to `nodejs` in the `config` object:
194-
195-
```js highlight={2} filename="proxy.js" switcher
196-
export const config = {
197-
runtime: 'nodejs',
198-
}
199-
```
200-
201-
```ts highlight={2} filename="proxy.ts" switcher
202-
export const config = {
203-
runtime: 'nodejs',
204-
}
205-
```
193+
Proxy defaults to using the Node.js runtime. The [`runtime`](/docs/app/api-reference/file-conventions/route-segment-config#runtime) config option is not available in Proxy files. Setting the `runtime` config option in Proxy will throw an error.
206194

207195
## Advanced Proxy flags
208196

0 commit comments

Comments
 (0)