Skip to content

Commit

Permalink
Fixes prettier error
Browse files Browse the repository at this point in the history
  • Loading branch information
manovotny committed Jun 20, 2023
1 parent 7bed149 commit 5bf1208
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/02-app/02-api-reference/04-functions/cookies.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,17 @@ To "delete" a cookie, you must set a new cookie with the same name and an empty
> **Good to know**: `.set()` is only available in a [Server Action](/docs/app/building-your-application/data-fetching/server-actions) or [Route Handler](/docs/app/building-your-application/routing/router-handlers).
```js filename="app/actions.js"
'use server';
'use server'

import { cookies } from 'next/headers';
import { cookies } from 'next/headers'

async function create(data) {
cookies().set({
name: 'name',
value: '',
expires: new Date('2016-10-05'),
path: '/', // For all paths
});
})
}
```

Expand Down

0 comments on commit 5bf1208

Please sign in to comment.