Skip to content

Commit cc0eab5

Browse files
committed
docs: fix build
1 parent ca30e90 commit cc0eab5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/pages/guides/corporate-proxy.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,23 @@ export const { handlers, auth } = NextAuth({
3636

3737
# Using HttpsProxyAgent
3838

39-
On Edge Runtimes or with proxy restrictions, the `undici` library may not work. Using a simpler approach with HttpsProxyAgent by passing a `proxyAgent` to the `fetch` implementation.
39+
On Edge Runtimes or with proxy restrictions, the `undici` library may not work. Using a simpler approach with HttpsProxyAgent by passing a `proxyAgent` to the `fetch` implementation.
4040

4141
<Code>
4242
<Code.Next>
4343

4444
```tsx filename="auth.ts"
4545
import NextAuth, { customFetch } from "next-auth"
4646
import GitHub from "next-auth/providers/github"
47-
const { HttpsProxyAgent } = require('https-proxy-agent');
47+
const { HttpsProxyAgent } = require("https-proxy-agent")
4848

49-
const proxyAgent = new HttpsProxyAgent("my.proxy.server");
49+
const proxyAgent = new HttpsProxyAgent("my.proxy.server")
5050
async function proxy(url: string, options: any): Promise<Response> {
5151
const response = (await fetch(url, {
5252
...options,
5353
agent: proxyAgent,
54-
})) as unknown as Response;
55-
return response;
54+
})) as unknown as Response
55+
return response
5656
}
5757

5858
export const { handlers, auth } = NextAuth({

0 commit comments

Comments
 (0)