Plumeria

ServerCSS

For Next.js ServerComponent only

Headless component

A headless component for facilitating server-side js for Next.js only.

It is safe to know

It will be null in non-development environments and will not be included in production environments.

layout.tsx
import { ServerCSS } from '@plumeria/next';
 
export default function RootLayout({ children }: { children: React.ReactNode }) {
  return (
    <html>
      <head>
        <ServerCSS />
      </head>
      <body>
        <main>{children}</main>
      </body>
    </html>
  );
}

On this page