Skip to content
/ nextjs-daisyui-ssr Public template

Next.js 14 App Router + daisyUI. Switch themes and render in SSR.

License

Notifications You must be signed in to change notification settings

xarunoba/nextjs-daisyui-ssr

Repository files navigation

Next.js 14 + daisyUI + SSR

This is an example project that integrates daisyUI with the new Next.js 14 App Router. This example uses cookies to load the themes server-side.

Methods

Use whichever suits your taste.

  1. Using Server Actions. (NEW)
  2. Using Javascript to set cookies client-side. (OLD)

Getting Started

First, install the dependencies:

npm install

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

About

Next.js 14 App Router + daisyUI. Switch themes and render in SSR.

Topics

Resources

License

Stars

Watchers

Forks