✨ https://settlemint.com ✨
Integrate SettleMint into your application with ease.
The SettleMint Next.js SDK provides a seamless integration layer between Next.js applications and the SettleMint platform. It offers a collection of utilities, hooks, and components specifically designed for Next.js applications, making it easy to interact with SettleMint's services while following Next.js best practices.
HelloWorld(
props
):ReactElement
Defined in: components/test.tsx:16
A simple Hello World component that greets the user.
Parameter | Type | Description |
---|---|---|
props |
HelloWorldProps |
The props for the HelloWorld component. |
ReactElement
A React element that displays a greeting to the user.
proxyMiddleware(
request
):undefined
|NextResponse
<unknown
>
Defined in: middlewares/proxy.ts:27
Middleware function to handle proxy requests by adding appropriate authentication headers.
Parameter | Type | Description |
---|---|---|
request |
NextRequest |
The incoming Next.js request to process |
undefined
| NextResponse
<unknown
>
A modified NextResponse with authentication headers for proxy routes, or undefined for non-proxy routes
Will throw an error if environment validation fails
import { proxyMiddleware } from '@settlemint/sdk-next/middlewares/proxy';
export default function middleware(request: NextRequest) {
return proxyMiddleware(request);
}
withSettleMint<
C
>(nextConfig
,options
):Promise
<C
>
Defined in: config/with-settlemint.ts:22
Modifies the passed in Next.js configuration with SettleMint-specific settings.
Type Parameter |
---|
C extends NextConfig |
Parameter | Type | Description |
---|---|---|
nextConfig |
C |
The original Next.js configuration |
options |
WithSettleMintOptions |
Options for customizing the SettleMint configuration |
Promise
<C
>
The modified Next.js configuration
If the SettleMint configuration cannot be read or processed
Defined in: components/test.tsx:6
The props for the HelloWorld component.
Defined in: config/with-settlemint.ts:7
Options for configuring the SettleMint configuration.
Property | Type | Description | Defined in |
---|---|---|---|
disabled? |
boolean |
Whether to disable the SettleMint configuration. | config/with-settlemint.ts:11 |
We welcome contributions from the community! Please check out our Contributing guide to learn how you can help improve the SettleMint SDK through bug reports, feature requests, documentation updates, or code contributions.
The SettleMint SDK is released under the FSL Software License. See the LICENSE file for more details.