Skip to content

v3.1.0

Compare
Choose a tag to compare
@marcofugaro marcofugaro released this 04 Jun 16:24
· 9 commits to main since this release

Next.js SSR support

Add @splinetool/react-spline/next entry points which allows you to take advantage of Next.js 14+ app router server-side rendering logic and render a blurred placeholder of the scene, automatically generated from the Spline editor.

import Spline from '@splinetool/react-spline/next';

export default function App() {
  return (
    <div>
      <Spline scene="https://prod.spline.design/KFonZGtsoUXP-qx7/scene.splinecode" />
    </div>
  );
}