# Slice Machine v1.25.0 Release Notes

**URL:** <https://community.prismic.io/t/slice-machine-v1-25-0-release-notes/15452>\
**Category:** Community Showcase & Announcements\
**Tags:** nextjs, slice-machine\
**Created:** [March 11, 2024, 11:08am UTC](https://community.prismic.io/t/slice-machine-v1-25-0-release-notes/15452 "2024-03-11T11:08:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [March 11, 2024, 11:08am UTC](https://community.prismic.io/t/slice-machine-v1-25-0-release-notes/15452/1 "2024-03-11T11:08:38Z")

</div>

Hey! 👋

We're happy to announce the release of Slice Machine v1.25.0!

## 🎨 Enhancements

- [Next.js dynamic functions](https://nextjs.org/docs/app/building-your-application/rendering/server-components#dynamic-functions), like `headers()` and `cookies()`, are now supported in the slice simulator.

## Update your Next.js slice simulator page

If you are using Next.js with the App Router, we recommend updating your `/slice-simulator` page with the following code.

After the update, your slice components can use [Next.js dynamic functions](https://nextjs.org/docs/app/building-your-application/rendering/server-components#dynamic-functions).

```auto
// src/app/slice-simulator/page.tsx

import {
  SliceSimulator,
  SliceSimulatorParams,
  getSlices,
} from "@slicemachine/adapter-next/simulator";
import { SliceZone } from "@prismicio/react";

import { components } from "@/slices";

export default function SliceSimulatorPage({
  searchParams,
}: SliceSimulatorParams) {
  const slices = getSlices(searchParams.state);

  return (
    <SliceSimulator>
      <SliceZone slices={slices} components={components} />
    </SliceSimulator>
  );
}

```

Updating your page is not required, but we recommend updating it in the near future. All new Next.js projects using the App Router and bootstrapped with `@slicemachine/init` will use the updated code.

Note

**If you are using the Pages Router, your page does not need to be updated**. The existing set up will continue to work without changes.

---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [March 26, 2024, 4:36pm UTC](https://community.prismic.io/t/slice-machine-v1-25-0-release-notes/15452/2 "2024-03-26T16:36:31Z")

</div>



---

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [March 26, 2024, 4:39pm UTC](https://community.prismic.io/t/slice-machine-v1-25-0-release-notes/15452/3 "2024-03-26T16:39:48Z")

</div>


