# Fix: Dynamic Server Usage Error

> The error Dynamic server usage Page couldn't be rendered statically because it used `cookies` is a common issue in Next.js. Here is the fix for Next.js Supabase Lite.

*Canonical: https://makerkit.dev/docs/next-supabase-lite/how-to/troubleshooting/dynamic-server-usage-error*

---

If you encounter the following error when starting the Makerkit application:

```
[ERROR] Dynamic server usage Page couldn't be rendered statically because it used `cookies`.
```

You can fix it by adding the following line to the nearest layout of the page that is causing the error:

```ts
export const dynamic = 'force-dynamic';
```

If it keeps happening, try to see if it is happening in yet another layout and add the line there as well. Do it until the error goes away.
