Optional
baseURIOptional
developmentRender contextual errors? This enables bun's error page
process.env.NODE_ENV !== 'production'
Optional
errorOptional
hostnameWhat hostname should the server listen on?
"0.0.0.0" // listen on all interfaces
"127.0.0.1" // Only listen locally
"remix.run" // Only listen on remix.run
note: hostname should not include a {@link port}
Optional
maxWhat is the maximum size of a request body? (in bytes)
1024 * 1024 * 128 // 128MB
Optional
portWhat port should the server listen on?
process.env.PORT || "3000"
Handle HTTP requests
Respond to Request objects with a Response object.
Handle HTTP requests
Respond to Request objects with a Response object.
Generated using TypeDoc
What URI should be used to make Request.url absolute?
By default, looks at hostname, port, and whether or not SSL is enabled to generate one
Example
Example
This should be the public, absolute URL – include the protocol and hostname. If the port isn't 80 or 443, then include the port too.
Example