Skip to content

refactor: remove unused import & fix typos in docs #3471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 25, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/components/alert.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { Callout } from 'nextra-theme-docs'

export const Alert = ({ children }) => {
1 change: 0 additions & 1 deletion docs/components/info.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import React from 'react'
import { Callout } from 'nextra-theme-docs'

export const Info = ({ children }) => {
2 changes: 0 additions & 2 deletions docs/components/logo.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import React from 'react'

type Props = {
src: string
alt?: string
6 changes: 1 addition & 5 deletions docs/pages/_app.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import 'nextra-theme-docs/style.css'

export default function Nextra({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
</>
)
return <Component {...pageProps} />
}
4 changes: 2 additions & 2 deletions docs/pages/apis/pool.mdx
Original file line number Diff line number Diff line change
@@ -29,14 +29,14 @@ type Config = {
idleTimeoutMillis?: number

// maximum number of clients the pool should contain
// by default this is set to 10. There is some nuance to setting the maxium size of your pool.
// by default this is set to 10. There is some nuance to setting the maximum size of your pool.
// see https://node-postgres.com/guides/pool-sizing for more information
max?: number

// minimum number of clients the pool should hold on to and _not_ destroy with the idleTimeoutMillis
// this can be useful if you get very bursty traffic and want to keep a few clients around.
// note: current the pool will not automatically create and connect new clients up to the min, it will
// only not evict and close clients except those which execeed the min count.
// only not evict and close clients except those which exceed the min count.
// the default is 0 which disables this behavior.
min?: number

2 changes: 1 addition & 1 deletion docs/pages/index.mdx
Original file line number Diff line number Diff line change
@@ -73,7 +73,7 @@ try {

### Pooling

In most applications you'll wannt to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it:
In most applications you'll want to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it:

```js
import { Pool } from 'pg'