Documentation
Preparing search index...
@rivetkit/next-js
mod
toNextHandler
Function toNextHandler
toNextHandler
(
registry
:
Registry
<
any
>
,
inputConfig
?:
|
{
autoConfigureServerless
?:
|
boolean
|
{
headers
?:
Record
<
string
,
string
>
;
maxRunners
?:
number
;
metadata
?:
Record
<
string
,
unknown
>
;
minRunners
?:
number
;
requestLifespan
?:
number
;
runnersMargin
?:
number
;
slotsPerRunner
?:
number
;
url
?:
string
;
}
;
basePath
?:
string
;
defaultServerPort
?:
number
;
disableActorDriver
?:
boolean
;
disableDefaultServer
?:
boolean
;
disableMetadataLookup
?:
boolean
;
driver
?:
{
actor
:
ActorDriverBuilder
;
manager
:
ManagerDriverBuilder
;
name
:
string
;
}
;
encoding
?:
"json"
|
"cbor"
|
"bare"
;
endpoint
?:
string
;
getUpgradeWebSocket
?:
GetUpgradeWebSocket
;
headers
?:
Record
<
string
,
string
>
;
inspector
?:
{
defaultEndpoint
?:
string
;
enabled
?:
boolean
|
{
actor
?:
boolean
;
manager
?:
boolean
}
;
token
?:
(
...
args
:
unknown
[]
)
=>
string
;
}
;
logging
?:
{
baseLogger
?:
Logger
;
level
?:
|
"fatal"
|
"error"
|
"warn"
|
"info"
|
"debug"
|
"trace"
|
"silent"
;
}
;
maxIncomingMessageSize
?:
number
;
namespace
?:
string
;
noWelcome
?:
boolean
;
overrideServerAddress
?:
string
;
runEngine
?:
boolean
;
runEngineVersion
?:
string
;
runnerKey
?:
string
;
runnerKind
?:
"serverless"
|
"normal"
;
runnerName
?:
string
;
token
?:
string
;
totalSlots
?:
number
;
}
|
undefined
,
)
:
{
GET
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
HEAD
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
OPTIONS
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
PATCH
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
POST
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
PUT
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
}
Parameters
registry
:
Registry
<
any
>
inputConfig
:
|
{
autoConfigureServerless
?:
|
boolean
|
{
headers
?:
Record
<
string
,
string
>
;
maxRunners
?:
number
;
metadata
?:
Record
<
string
,
unknown
>
;
minRunners
?:
number
;
requestLifespan
?:
number
;
runnersMargin
?:
number
;
slotsPerRunner
?:
number
;
url
?:
string
;
}
;
basePath
?:
string
;
defaultServerPort
?:
number
;
disableActorDriver
?:
boolean
;
disableDefaultServer
?:
boolean
;
disableMetadataLookup
?:
boolean
;
driver
?:
{
actor
:
ActorDriverBuilder
;
manager
:
ManagerDriverBuilder
;
name
:
string
;
}
;
encoding
?:
"json"
|
"cbor"
|
"bare"
;
endpoint
?:
string
;
getUpgradeWebSocket
?:
GetUpgradeWebSocket
;
headers
?:
Record
<
string
,
string
>
;
inspector
?:
{
defaultEndpoint
?:
string
;
enabled
?:
boolean
|
{
actor
?:
boolean
;
manager
?:
boolean
}
;
token
?:
(
...
args
:
unknown
[]
)
=>
string
;
}
;
logging
?:
{
baseLogger
?:
Logger
;
level
?:
|
"fatal"
|
"error"
|
"warn"
|
"info"
|
"debug"
|
"trace"
|
"silent"
;
}
;
maxIncomingMessageSize
?:
number
;
namespace
?:
string
;
noWelcome
?:
boolean
;
overrideServerAddress
?:
string
;
runEngine
?:
boolean
;
runEngineVersion
?:
string
;
runnerKey
?:
string
;
runnerKind
?:
"serverless"
|
"normal"
;
runnerName
?:
string
;
token
?:
string
;
totalSlots
?:
number
;
}
|
undefined
= {}
Returns
{
GET
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
HEAD
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
OPTIONS
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
PATCH
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
POST
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
PUT
:
(
request
:
Request
,
__namedParameters
:
{
params
:
Promise
<
{
all
:
string
[]
}
>
}
,
)
=>
Promise
<
Response
>
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...