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

This commit is contained in:
Noritaka Kobayashi 2025-05-26 01:30:11 +09:00 committed by GitHub
parent c9353acbc0
commit 9cf2184d09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 4 additions and 12 deletions

View File

@ -1,4 +1,3 @@
import React from 'react'
import { Callout } from 'nextra-theme-docs'
export const Alert = ({ children }) => {

View File

@ -1,4 +1,3 @@
import React from 'react'
import { Callout } from 'nextra-theme-docs'
export const Info = ({ children }) => {

View File

@ -1,5 +1,3 @@
import React from 'react'
type Props = {
src: string
alt?: string

View File

@ -1,9 +1,5 @@
import 'nextra-theme-docs/style.css'
export default function Nextra({ Component, pageProps }) {
return (
<>
<Component {...pageProps} />
</>
)
return <Component {...pageProps} />
}

View File

@ -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

View File

@ -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'