Unverified Commit 85002ba0 authored by Wyatt Johnson's avatar Wyatt Johnson Committed by GitHub

Linted MDX (#51530)

Fixes a linting issue with a MDX file that was updated.
parent 30bb2524
...@@ -90,9 +90,9 @@ To "delete" a cookie, you must set a new cookie with the same name and an empty ...@@ -90,9 +90,9 @@ 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). > **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" ```js filename="app/actions.js"
'use server'; 'use server'
import { cookies } from 'next/headers'; import { cookies } from 'next/headers'
async function create(data) { async function create(data) {
cookies().set({ cookies().set({
...@@ -100,7 +100,7 @@ async function create(data) { ...@@ -100,7 +100,7 @@ async function create(data) {
value: '', value: '',
expires: new Date('2016-10-05'), expires: new Date('2016-10-05'),
path: '/', // For all paths path: '/', // For all paths
}); })
} }
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment