Unverified Commit 8ede5d01 authored by Jiwon Choi's avatar Jiwon Choi Committed by GitHub

docs: proxy runtime defaults to nodejs (#85204)

Proxy runtime defaults to nodejs and does not allow runtime config since
https://github.com/vercel/next.js/pull/85139
parent 27a3fa71
...@@ -190,19 +190,7 @@ Proxy will be invoked for **every route in your project**. Given this, it's cruc ...@@ -190,19 +190,7 @@ Proxy will be invoked for **every route in your project**. Given this, it's cruc
## Runtime ## Runtime
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: 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.
```js highlight={2} filename="proxy.js" switcher
export const config = {
runtime: 'nodejs',
}
```
```ts highlight={2} filename="proxy.ts" switcher
export const config = {
runtime: 'nodejs',
}
```
## Advanced Proxy flags ## Advanced Proxy flags
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment