This sample allows you to easily set up a Sitecore Search sample site using Next.js + Tailwind CSS.
For details on how to create this sample, please refer to the following page.
This sample has been tested with the following environment.
- Node.js 20.15.0
- Next.js 14.2.18
- Sitecore Search
- Rename the
.env.examplefile to.env.local - Specify the following three environment variables
NEXT_PUBLIC_SEARCH_ENV=
NEXT_PUBLIC_SEARCH_CUSTOMER_KEY=
NEXT_PUBLIC_SEARCH_API_KEY=Once the configuration is complete, run the following commands.
npm install
npm run devYou can see the sample running on the following site.