Note
Sorry for the advertising, I'm trying to promote my product too. Visit
Scroll down to see library.
Next-Supsis is a library for Supsis integration with Next.js.
You can install the library using npm:
npm install next-supsis
Here is an example of how to use the library:
Note: You need to replace
YOUR_SUPSIS_API
with your Supsis API.
// Layout.tsx
import { Supsis } from "next-supsis";
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className="antialiased">
{children}
<Supsis src={"YOUR_SUPSIS_API"} />
</body>
</html>
);
}
or if you use javascript
// Layout.jsx
import { Supsis } from "next-supsis";
export default function RootLayout({
children,
}) {
return (
<html lang="en">
<body className="antialiased">
{children}
<Supsis src={"YOUR_SUPSIS_API"} />
</body>
</html>
);
}